menu: Add flex property to custom element in popup menu items for better layout (#1335)
This commit is contained in:
parent
c3954b0455
commit
d47b9c15ed
1 changed files with 1 additions and 0 deletions
|
|
@ -874,6 +874,7 @@ impl PopupMenu {
|
|||
.disabled(*disabled)
|
||||
.child(
|
||||
h_flex()
|
||||
.flex_1()
|
||||
.min_h(item_height)
|
||||
.items_center()
|
||||
.gap_x_1()
|
||||
|
|
|
|||
Loading…
Reference in a new issue