constrain popups to the screen

This commit is contained in:
Emil Ernerfeldt 2023-02-08 10:02:50 +01:00
parent 90cd178117
commit c2d37571f7

View file

@ -260,8 +260,9 @@ fn show_tooltip_area_dyn<'c, R>(
Area::new(area_id) Area::new(area_id)
.order(Order::Tooltip) .order(Order::Tooltip)
.fixed_pos(window_pos) .fixed_pos(window_pos)
.constrain(true)
.interactable(false) .interactable(false)
.drag_bounds(Rect::EVERYTHING) // disable clip rect .drag_bounds(ctx.screen_rect())
.show(ctx, |ui| { .show(ctx, |ui| {
Frame::popup(&ctx.style()) Frame::popup(&ctx.style())
.show(ui, |ui| { .show(ui, |ui| {