From f2dd3dfdd9fdaa4f5e6bacb98d77f6e0f3f598ee Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Tue, 28 Sep 2021 22:19:03 +0200 Subject: [PATCH] Fix popups sometimes getting clipped by panels --- CHANGELOG.md | 1 + egui/src/containers/popup.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3de75cf8..90839285 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ NOTE: [`eframe`](eframe/CHANGELOG.md), [`egui_web`](egui_web/CHANGELOG.md), [`eg * Fix wrongly sized multiline `TextEdit` in justified layouts. * Fix clip rectangle of windows that don't fit the central area. * Show tooltips above widgets on touch screens. +* Fix popups sometimes getting clipped by panels. ## 0.14.2 - 2021-08-28 - Window resize fix diff --git a/egui/src/containers/popup.rs b/egui/src/containers/popup.rs index e7b42958..b17c5a08 100644 --- a/egui/src/containers/popup.rs +++ b/egui/src/containers/popup.rs @@ -240,6 +240,7 @@ fn show_tooltip_area_dyn<'c, R>( .order(Order::Tooltip) .fixed_pos(window_pos) .interactable(false) + .drag_bounds(Rect::EVERYTHING) // disable clip rect .show(ctx, |ui| { Frame::popup(&ctx.style()) .show(ui, |ui| {