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 :
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é</b>");
topToolbar.addButton(topvalidationButton);
and my css
Code:
.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