PDA

View Full Version : Combo width is not working in Ext 4.1



AtulDawkhare
1 Aug 2012, 3:42 AM
Hi ,
Recently I have upgraded Ext from 4.0.7 to 4.1

earlier the combo was working very fine. but now combo is not taking width.

here is my code



var combo=Ext.create('Ext.form.ComboBox',
{
multiSelect : false,
id:'SelectComponentId',
name:'SelectComponentId',
allowBlank: true,
inputId:'SelectComponentId_input',
hideTrigger: false,
editable: false,
selectOnFocus: false,
typeAhead: false,
disabled: false,
readOnly: false,
width: 312,
store: [['-1','Select User'],['59','Yagna Tel Clear']],
value:'-1',
renderTo:'UserBO_SelectComponentId_Div',
triggerAction: 'all'
});


when I execute the above code, I combo as attached. but when I removed the width then combo looks ok, at least it takes default width.

Can you please suggest what is missing here? I want to give width to combo also combo looks fine.

37666

sword-it
1 Aug 2012, 4:01 AM
Hi,

I can't reproduce your issue with above code, width config is work fine in my side.
See the sample example(tested on Firefox) - http://jsfiddle.net/26QWn/


(http://jsfiddle.net/26QWn/)You get more help if you provide full sample code.

AtulDawkhare
1 Aug 2012, 4:15 AM
I tried your URL and found the same issue

attached the screen shot this.

37669

scottmartin
1 Aug 2012, 8:02 AM
The example works fine of you have the correct CSS in jsfiddle:
http://extjs.cachefly.net/ext-4.1.1-gpl/resources/css/ext-all.css

Please make sure you are using 4.1.1 GA

Scott.