PDA

View Full Version : Toolbar Button size



dvicente72
7 Nov 2008, 4:15 AM
Hi all !

I want to use 48x48 size's images as icon on a toolbar.

I've made many tries as described in this forum but my image still remains as 16x16 image

my code :


Toolbar topToolbar = new Toolbar();
topToolbar.setHeight(60);
ToolbarButton topvalidationButton = new ToolbarButton();
topvalidationButton.setIconCls("x-btn-identity-toolbar-icon");
topvalidationButton.setIcon("images/User_high.png");
topvalidationButton.setTooltip("<b>Identit&eacute;</b>");
topToolbar.addButton(topvalidationButton);
and my css


.x-btn-identity-toolbar-icon .x-btn-center .x-btn-text {
background-position: center;
background-repeat: no-repeat;
height : 48px;
width: 48px;
cursor: pointer;
white-space: nowrap;
padding: 0;
}

.x-btn-identity-toolbar-icon .x-btn-center {
padding: 1px;
}
What's wrong ?

Thanks for your help

darrellmeyer
12 Nov 2008, 10:44 AM
The tool bar does not support icons greater than 16x16. GXT will be implementing the new toolbar and button features as Ext JS in a later release. See http://extjs.com/blog/2008/04/21/ext-js-21-and-ext-gwt-10-released-preview-of-ext-js-30/.