Threaded View
-
16 Feb 2012 6:32 AM #1
Answered: 'selectfield' Issue
Answered: 'selectfield' Issue
Not exactly sure what changed from Beta 2 to Beta 3 form components.
This worked fine in Beta2 but in beta3, labelWidth : 0 makes the 'selectfield', 'textfield' width smaller (50%) than what it should be.
For example, with beta 2, textfield width was about 320px but, with beta3 it's only 160px with labelWidth=0.
Thanks for the help.Code:{ xtype : 'selectfield', options : [ {text : 'Option1', value : '0'}, {text : 'Option2', value : '1'}, {text : 'Option3', value : '2'} ], placeHolder : 'Select an option', labelWidth : 0 }Last edited by mitchellsimoens; 16 Feb 2012 at 7:24 AM. Reason: added [CODE] tags
-
Best Answer Posted by mitchellsimoens
Odd... I have this and it spans the entire width of my screen:
Code:new Ext.Container({ fullscreen : true, items : [ { xtype : 'selectfield', options : [ {text : 'Option1', value : '0'}, {text : 'Option2', value : '1'}, {text : 'Option3', value : '2'} ], placeHolder : 'Select an option', labelWidth : 0 } ] });


Reply With Quote