1
0
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:
Emil Ernerfeldt
2020-05-05 19:33:02 +02:00
parent 6aadf4128e
commit 0fdc1048c8
3 changed files with 22 additions and 1 deletions

View File

@@ -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);
}

View File

@@ -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?
}
}