-
6 Oct 2010 6:42 AM #1
padding Ext.form.TextField
padding Ext.form.TextField
Hi,
For one field in my form I would like to bring the label and the inputfield closer together. I can manipulate the labelstyle and the input style, but I cant get them closre together. Does anyone know how I can do this? (without changing the general style, because it should only affect 1 textfield)
Patrick
-
6 Oct 2010 6:56 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
labelWidth and optionally also labelPad
-
6 Oct 2010 6:58 AM #3
You need labelStyle to set padding-right to 0px
PHP Code:new Ext.FormPanel({
labelAlign: 'right',
labelSeparator: '',
labelPad: 0,
defaults: {
labelStyle: 'padding-right: 0px;' // << for all field, move it on one particular field if you prefer
},
...
Similar Threads
-
form padding-left problem ?
By bsahin in forum Ext 2.x: Help & DiscussionReplies: 7Last Post: 9 Jan 2011, 11:36 PM -
Witch is faster Ext.form.TextField or xtype:'textfield' ?
By lassaad in forum Ext 3.x: Help & DiscussionReplies: 3Last Post: 7 Sep 2009, 5:12 AM -
Extending Ext.form.TextField - new form field
By archmisha in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 8 May 2009, 5:23 AM -
[2.2] No padding between fieldset with no title and form on IE 7
By wuschba in forum Ext 2.x: BugsReplies: 0Last Post: 23 Sep 2008, 11:53 AM


Reply With Quote