PDA

View Full Version : [FIXED] [4.1.b2] Button with icon - width



TiloS
21 Feb 2012, 3:27 AM
Hello,

if in a button is only a icon I cannot change the width of the button. I can choose the width only by scale but "width" don't work. If I have a larger icon its cut.
Also cls or iconCls don't have an effect to the width.

{ xtype: 'button',
scale: 'large',
height: 22,
width: 100,
iconCls: 'myIcon'
}In 4.0.7 it works but not in 4.1.b2 with orignal ext-all.css.
Maybe its a bug.

TiloS

mitchellsimoens
21 Feb 2012, 5:16 AM
Inspect the DOM to see what is going on. I believe there is sizing CSS on the icon element.

skirtle
22 Feb 2012, 1:42 AM
I'd say this is a bug, moving to the bugs forum.