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

Fix tooltips sometimes changing position each frame (#7304)

There was a bug in how we decide where to place a `Tooltip` (or other
`Popup`), which could lead to tooltips jumping around every frame,
especially if it changed size slightly.

The new code is simpler and bug-free.
This commit is contained in:
Emil Ernerfeldt
2025-07-07 12:02:01 +02:00
committed by GitHub
parent a811b975c2
commit 6d80707422
3 changed files with 31 additions and 35 deletions

View File

@@ -484,6 +484,7 @@ impl<'a> Popup<'a> {
self.gap,
expected_popup_size,
)
.unwrap_or_default()
}
/// Show the popup.