I just updated to EXT GWT 2.3.1 and noticed my menu items are misaligned. I usually have icon's beside each menu item in the menu and now the text seems to be underneath. Also only the first icon in the menu seems to be showing and the rest are hidden. I inspected the HTML and here is what I noticed:
Example Menu Item
MenuItem addItemButton = new MenuItem("Manually Add Item");
addItemButton.setIcon(AbstractImagePrototype.create(CSMApp.ICONS.add()));
addItemButton.addSelectionListener(new SelectionListener<MenuEvent>() {
@Override
public void componentSelected(MenuEvent ce) {
presenter.onAddNewWorkorderItem(itemGrid.getSelectionModel().getSelectedItem());
}
});
newItemMenu.add(addItemButton);
My fix:
Overwrite the onRender()-Method in com.extjs.gxt.ui.client.widget.menu.MenuItem.java and change
setElement(DOM.createSpan(), target, index);
to
setElement(DOM.createAnchor(), target, index);
Maybe the GXT-Team can fix this in the next version?!
Can you check to see if the gxt-all.css has been updated, copy it from the release into the source as well? Would copying the new release css and update it into the project change the result of the alignment?
Could an example be provided, test case to be sure we are on the same configuration page?
I've closed the issue as it look like the gxt-all.css hasn't been updated. Please let me know if updating the css. If it doesn't work for you updating, let me know and I can reopen the issue. Be sure to make sure the old css is not cached when testing. Thanks,Brandon
I've closed the issue as it look like the gxt-all.css hasn't been updated. Please let me know if updating the css. If it doesn't work for you updating, let me know and I can reopen the issue. Be sure to make sure the old css is not cached when testing. Thanks,Brandon
HI. I have the same issue. Should I replace gxt-all.css? Does it works. Now clear for me what solution helps.