Snap overlay's bottom/right edge to same window's edge on overflow

This commit is contained in:
Antonio Scandurra 2022-06-09 13:21:27 +02:00
parent e0ecf3bc4c
commit ea8b5016f7
4 changed files with 20 additions and 11 deletions

View file

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