We once had problems with MenuBars that are too wide in a Panel/UI.
This could be resolved by MenuBar::setWidth(“100%”) - then, the MoreMenuItem (MMI) appeared, and all was good.
Resizing went (mostly, not perfectly) well.
Now, we’ve seen very strange behaviour when using MenuBars inside of Windows.
You know, the dialog/editor with menu bar kind of things.
Sometimes it works, but then - not really.
When the “overflow-trigger” kicks in, sometimes you can see an arrow button (that’s the MMI).
But after playing with resize things go wild:
*when widening, after narrowing, the MMI stays at its position and other MenuItems don’t show up
*even if MenuItem show up again, they are clickable - but nothing happens
*sometimes you don’t see a MMI, normal MenuItems overflow, but after small<->large resize of the window they aren’t clickable again
*sometimes MenuItems change position - the right last one would stick left.
I don’t even need to give a test case, just go to:
https://demo.vaadin.com/sampler/#ui/interaction/menu-bar
and play around with the “resizer” thingy.
Even more so, play a little bit with the back/forward navigation in the demo.
The previous demo is the ProgressBar. Try it, wait till it’s done, and try to navigate forth. It’s blocked!
After testing dozens of tweaks internally: guys, there is a real problem out there.