Checkpoint

This commit is contained in:
Nathan Sobo 2023-10-23 15:14:10 +02:00
parent d1adce5890
commit fc927f7406
3 changed files with 5 additions and 5 deletions

View file

@ -469,7 +469,7 @@ impl<'a, 'w> WindowContext<'a, 'w> {
.layout_engine
.layout_bounds(layout_id)
.map(Into::into);
bounds.origin -= self.element_offset();
bounds.origin += self.element_offset();
bounds
}
@ -812,7 +812,7 @@ impl<'a, 'w> WindowContext<'a, 'w> {
if let Some(mut active_drag) = cx.active_drag.take() {
cx.stack(1, |cx| {
let mouse_position = -cx.mouse_position();
let mouse_position = cx.mouse_position();
cx.with_element_offset(Some(mouse_position), |cx| {
let available_space =
size(AvailableSpace::MinContent, AvailableSpace::MinContent);