Align context menu to fit within the window bounds

This commit is contained in:
Antonio Scandurra 2022-06-02 09:47:06 +02:00
parent f1964cf2a0
commit 701e2090cd
3 changed files with 58 additions and 37 deletions

View file

@ -92,6 +92,8 @@ impl View for ContextMenu {
.boxed();
Overlay::new(expanded_menu)
.hoverable(true)
.align_to_fit(true)
.with_abs_position(self.position)
.boxed()
}