View Full Version : labelWidth only half working

17 Aug 2009, 6:20 PM
(Sorry Guys, this should have been posted in Help, not Bugs)

Hi All,

I'm in the process of migrating from Ext 2.2 to Ext 3.0, and have a rendering issue with my forms:

Setting the labelWidth on a form field in a form panel, (form layout), sets the Field width correctly but keeps the label width to the default 100px. Here is the code

,labelWidth: 80
,xtype: 'textfield'
,labelStyle: 'text-align:right;'In Firebug the field width is not set in the element style, Ext 2.2 did set the width. Since it doesn't get set it uses the default .x-form-item label. The only work around I could see is to add width:80px; in the labelStyle I can't seem to find any changes that have been made to labelWidth with any Ext 3.0 release notes.

Any help would be great.


17 Aug 2009, 9:19 PM
There was a bug in which your labelStyle overrode any set style from settings like labelWidth.

IIRC, this has been fixed. I don't know if 3.0.1 is available yet, but when/if you can, try that.