constrain popups to the screen
This commit is contained in:
parent
90cd178117
commit
c2d37571f7
1 changed files with 2 additions and 1 deletions
|
@ -260,8 +260,9 @@ fn show_tooltip_area_dyn<'c, R>(
|
|||
Area::new(area_id)
|
||||
.order(Order::Tooltip)
|
||||
.fixed_pos(window_pos)
|
||||
.constrain(true)
|
||||
.interactable(false)
|
||||
.drag_bounds(Rect::EVERYTHING) // disable clip rect
|
||||
.drag_bounds(ctx.screen_rect())
|
||||
.show(ctx, |ui| {
|
||||
Frame::popup(&ctx.style())
|
||||
.show(ui, |ui| {
|
||||
|
|
Loading…
Reference in a new issue