iterator
11 Mar 2009, 2:16 AM
A similar problem seemed to be recognized and fixed before:
http://www.extjs.com/forum/showthread.php?p=236630
But with GXT 1.2.2 there is still a problem with text free TextToolItems. If I use an empty string as text the icon is rendered fully but the button displays some space (ca. 50% exta) right to the icon. If I set no text at all (which I basically started with) the extra space is not shown and this is correct but the top line of the icon is cutted then.
Try to see a difference in a toolbar with the two alternatives (both are not satisfying):
// icon is displayed correctly but button has wrong extra space right beside the icon
TextToolItem item1 = new TextToolItem("","icon-example");
// button has the right size but the icon is displayed with a cutted first line
TextToolItem item2 = new TextToolItem();
item2.setIconStyle("icon-example");
ToolBar toolbar = new ToolBar();
toolbar.add(item1);
toolbar.add(item2);
Since toolbars with a lot of tools are better built with text free buttons and tooltips this issue seems to be worth handled.
Thanks for looking into this.
http://www.extjs.com/forum/showthread.php?p=236630
But with GXT 1.2.2 there is still a problem with text free TextToolItems. If I use an empty string as text the icon is rendered fully but the button displays some space (ca. 50% exta) right to the icon. If I set no text at all (which I basically started with) the extra space is not shown and this is correct but the top line of the icon is cutted then.
Try to see a difference in a toolbar with the two alternatives (both are not satisfying):
// icon is displayed correctly but button has wrong extra space right beside the icon
TextToolItem item1 = new TextToolItem("","icon-example");
// button has the right size but the icon is displayed with a cutted first line
TextToolItem item2 = new TextToolItem();
item2.setIconStyle("icon-example");
ToolBar toolbar = new ToolBar();
toolbar.add(item1);
toolbar.add(item2);
Since toolbars with a lot of tools are better built with text free buttons and tooltips this issue seems to be worth handled.
Thanks for looking into this.