-
5 Jan 2009 12:29 PM #1
[2.2] FormPanel, labelWidth not working
[2.2] FormPanel, labelWidth not working
Hi staff,
I need increase on size the label in my FormPanel, I used the config of FormPanel "labelWidth" more not working =/
What is bug?
ex:
Code:var form = new Ext.form.FormPanel({ title: 'myForm' , labelWidth: 100 // ex. is not working I tried 10, 20, 50, 100 is nothing =( , items: [ { ... } ] })
-
5 Jan 2009 5:48 PM #2
that's not possible.
compare your existing code with the code in examples/form/dynamic.js from the official Ext download -- i've just tried that and it works correctly.
Sencha Docs / Ext 3.x - ( Docs | Examples )
Learning Center / Saki's Examples (for 2.x) / HOWTO - ( Report Bugs | Post Proper Code )
-
5 Jan 2009 6:12 PM #3
Agreed, I don't see any issue here:
Code:Ext.onReady(function(){ var fp = new Ext.form.FormPanel({ labelWidth: 120, renderTo: document.body, width: 400, height: 400, items: [{ xtype: 'textfield', fieldLabel: 'F1' },{ xtype: 'textfield', fieldLabel: 'F2' }] }); });Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
5 Jan 2009 10:33 PM #4Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 40
Are you also setting a labelStyle?
Ext does contain a bug that breaks hideLabels, labelAlign and labelWidth when setting labelStyle.
-
6 Jan 2009 10:09 AM #5
I tried large 100 is work more less tha 100 not working this is normal??
-
6 Jan 2009 10:12 AM #6
not it's not. post a full test case, and/or take note of @condor's question in post #4.
Sencha Docs / Ext 3.x - ( Docs | Examples )
Learning Center / Saki's Examples (for 2.x) / HOWTO - ( Report Bugs | Post Proper Code )
-
3 Jul 2012 8:35 PM #7
I got the same problem too
I got the same problem too
I got the same problem with you and even the width, height, labelAlign are not working too..
I used the form panel in the pop up whenever a button was clicked..
here's my code, do you already have the solution for this problem?
erorextjs.txt
-
17 Apr 2013 10:42 AM #8
Hi, I solved the problem using Ext.form.Labelable configuration as is described here http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.form.Labelable
Example:
newExt.form.Panel({ fieldDefaults:{ labelAlign:'left', labelWidth:100}, items:[{ xtype:'fieldset', defaults:{ labelAlign:'top'}, items:[{ name:'field1'},{ name:'field2'}]},{ xtype:'fieldset', items:[{ name:'field3', labelWidth:150},{ name:'field4'}]}]});Regards.



Reply With Quote