Align context menu to fit within the window bounds
This commit is contained in:
parent
f1964cf2a0
commit
701e2090cd
3 changed files with 58 additions and 37 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue