Use a different fit mode for tooltips

This commit is contained in:
Antonio Scandurra 2022-06-15 16:44:08 +02:00
parent f2a48c6b02
commit 8a146e49ca
3 changed files with 39 additions and 19 deletions

View file

@ -94,7 +94,7 @@ impl View for ContextMenu {
Overlay::new(expanded_menu)
.hoverable(true)
.move_to_fit(true)
.fit_mode(OverlayFitMode::SnapToWindow)
.with_abs_position(self.position)
.boxed()
}