1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 05:40:03 -04:00

Constrain Areas to screen by default (#4591)

Call `area.constrain(false)` if you want your areas to extend outside
the screen rect.
This commit is contained in:
Emil Ernerfeldt
2024-05-31 10:48:06 +02:00
committed by GitHub
parent c0479cadf3
commit df8b9c2d75
6 changed files with 4 additions and 7 deletions

View File

@@ -142,7 +142,6 @@ impl<'a> Widget for DatePickerButton<'a> {
} = Area::new(ui.make_persistent_id(self.id_source))
.order(Order::Foreground)
.fixed_pos(pos)
.constrain_to(ui.ctx().screen_rect())
.show(ui.ctx(), |ui| {
let frame = Frame::popup(ui.style());
frame