Search code examples
gwtmenuitemmenubar

GWT displaying many menuItems


I'm having a MenuBar with n MenuItems. So if n is an high number I have many MenuItems. So I'm searching for an way to display them under my conditions. for example: n= 8 *After n=5 the List splits in to blocks:

 |------------| |------------|
 |n=0         | |n=6         |
 |n=1         | |n=7         |
 |n=2         | |n=8         |
 |n=3         | |------------|
 |n=4         |
 |n=5         |
 |------------|

and not

 |------------| 
 |n=0         | 
 |n=1         |
 |n=2         | 
 |n=3         | 
 |n=4         |
 |n=5         |
 |n=6         |
 |n=7         |
 |n=8         |
 |------------|

Because its destroying the page layout. Hopefully my kinda strange explanation can show u my problem. thanks :)


Solution

    1. I have not seen such behavior implemented in a menu!!!

    2. The scroll on the menu is also a bit weird and will look something like this.

    If you wish to add scroll to menu then the style to edit would be as below :

    .gwt-MenuBarPopup {
        overflow-y: scroll !important;
        height: 70px !important;
    }
    

    enter image description here