public class MenuBarParaTelaSelecaoDeModulo extends MenuBar
{
public MenuBarParaTelaSelecaoDeModulo()
{
MenuBar.MenuItem menuTeste = addItem("Teste de Menu", null);
for (int i = 0; i < 60; i++)
{
menuTeste.addItem("Teste de Menu grande " + i, null);
}
}
}
In SmartGWT, menubars create a scrollbar in long menus.
In Sencha ExtGWT, menubar contais a set up and down in long menus.
This won’t work in all browsers (mainly IE6), and some browsers might have some rendering issues. You need to set the max-height to some approximate value, depending on the distance of the MenuBar from the top of the window.
Ticket
http://dev.vaadin.com/ticket/6420 has now been implemented an will be included in Vaadin 6.6.7 and Vaadin 6.7rc1 which will both soon be released.