How to make the minimum width of SplitMenuButton's popup menu not less than the width of the button itself? (JavaFX 19)

65 Views Asked by At

I want the minimum width of SplitMenuButton's popup menu to be bound to the SplitMenuButton's widthProperty. When the width of the SplitMenuButton changes, the minimum width of the menu also changes. The desired effect is that the width of the menu will not be smaller than the width of the button. How to achieve it?

0

There are 0 best solutions below