xalvaro
21 Apr 2009, 4:29 AM
It seems that there is a bug corresponding to the button iconStyle in gxt2.0
Example:
css :
.toDashBoard {width: 16px; height: 16px; background-image: url(icons/toDashBoard16.png)}
code :
Button exportToDashBoardTool = new Button();
exportToDashBoardTool.setIconStyle("toDashBoard");
exportToDashBoardTool.setMenu(menu);
MenuItem menuItem = new MenuItem("New");
menuItem.setIconStyle("toDashBoard");
menu.add(menuItem);
The icon is shown on the menuItem but not on the button.
Thanks for your attention
Example:
css :
.toDashBoard {width: 16px; height: 16px; background-image: url(icons/toDashBoard16.png)}
code :
Button exportToDashBoardTool = new Button();
exportToDashBoardTool.setIconStyle("toDashBoard");
exportToDashBoardTool.setMenu(menu);
MenuItem menuItem = new MenuItem("New");
menuItem.setIconStyle("toDashBoard");
menu.add(menuItem);
The icon is shown on the menuItem but not on the button.
Thanks for your attention