mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 06:10:06 -04:00
Bug fix: window/floating sizes
This commit is contained in:
@@ -107,6 +107,11 @@ impl Floating {
|
||||
|
||||
state.pos = state.pos.round();
|
||||
|
||||
// ctx.debug_rect(
|
||||
// Rect::from_min_size(state.pos, state.size),
|
||||
// &format!("Floating size: {:?}", state.size),
|
||||
// );
|
||||
|
||||
if move_interact.active || mouse_pressed_on_floating(ctx, id) {
|
||||
ctx.memory().move_floating_to_top(id);
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ impl Frame {
|
||||
},
|
||||
);
|
||||
|
||||
region.expand_to_include_child(child_region.rect().expand2(margin));
|
||||
region.expand_to_include_child(child_region.child_bounds().expand2(margin));
|
||||
// TODO: move up cursor?
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user