PDA

View Full Version : Toolbar button icon size 32x32?



ultra2
4 Dec 2011, 1:37 PM
I have a toolbar. Can someone give me an example how to get 32x32 pixel size icons on buttons? (css hack?)

In toolbar button's iconCls: 'btnNew'.

css example:
.btnNew
{
background-image:url('app/resources/images/btnNew.png'); //32x32 pixel png wont stretch out on toolbar
}

skirtle
4 Dec 2011, 3:27 PM
Have you tried scale?

http://docs.sencha.com/ext-js/4-0/#!/api/Ext.button.Button-cfg-scale

ultra2
7 Dec 2011, 11:04 AM
perfect, thanks!