How to expand a MenuBar to whole screen width?

Hi,
I have been working with Vaadin for several weeks and I am still confused with all the Layout paraphernalia (setSizeFull, setUndefinedSize, setExpandRatio, setWidth, etc)

Could somebody explain me how to expand a MenuBar to whole screen width?

I’ve tried several combinations with no success.

Thanks.
11791.png

You can use some layout (styled as menu bar) and add your menu into this layout

Hi,

just call setWidth(“100%”); to the menu bar. Of course this assuming that the layout containing the menu bar has also been set to 100% width, which seems to be the (intended) case judging by your screen cap.


Tepi

Yeah yeah…

menubar.setWidth("100%"); do the miracle…

thanks!
11792.png