Wolfgang
30 Jul 2007, 7:37 AM
Hello,
using Ext1.1R1
i have a dynamic for that look should have:
2 columns
1 text input below those columns.
Example
sStd - sMin
eStd - eMin
commentTextField
Problem: The label of comment is displayed on the right side of sMin.
The only way to get it in the next line is to increase the width of the column holding sMin/eMin with respect to the size of the dialog holding the form.
But: it should work using the config option clear:true.
Here the code
frmBuchung.column(
//{width:272, style:'margin-left:10px', clear:true}, // apply custom css, clear:true means it is the last column
{width:50}, // apply custom css, clear:true means it is the last column
new Ext.form.TextField({
fieldLabel: 'Std',
name: 'sstime',
width:30
}),
new Ext.form.TextField({
fieldLabel: 'Std',
name: 'estime',
width:30
})
);
frmBuchung.column({width:80, clear:true},
new Ext.form.TextField({
fieldLabel: 'Min',
name: 'smtime',
width:30
}),
new Ext.form.TextField({
fieldLabel: 'Min',
name: 'emtime',
width:30
})
);
frmBuchung.container({},
new Ext.form.TextField({
id:'betreff',
fieldLabel:'Betreff',
width:520
})
);
I also tried things like frmBuchung.end() but this does not work and would be wrong, because the container do autoclose.
Seems to be a bug. Anyway - any hint is appreciated.
Regards
Wolfgang
using Ext1.1R1
i have a dynamic for that look should have:
2 columns
1 text input below those columns.
Example
sStd - sMin
eStd - eMin
commentTextField
Problem: The label of comment is displayed on the right side of sMin.
The only way to get it in the next line is to increase the width of the column holding sMin/eMin with respect to the size of the dialog holding the form.
But: it should work using the config option clear:true.
Here the code
frmBuchung.column(
//{width:272, style:'margin-left:10px', clear:true}, // apply custom css, clear:true means it is the last column
{width:50}, // apply custom css, clear:true means it is the last column
new Ext.form.TextField({
fieldLabel: 'Std',
name: 'sstime',
width:30
}),
new Ext.form.TextField({
fieldLabel: 'Std',
name: 'estime',
width:30
})
);
frmBuchung.column({width:80, clear:true},
new Ext.form.TextField({
fieldLabel: 'Min',
name: 'smtime',
width:30
}),
new Ext.form.TextField({
fieldLabel: 'Min',
name: 'emtime',
width:30
})
);
frmBuchung.container({},
new Ext.form.TextField({
id:'betreff',
fieldLabel:'Betreff',
width:520
})
);
I also tried things like frmBuchung.end() but this does not work and would be wrong, because the container do autoclose.
Seems to be a bug. Anyway - any hint is appreciated.
Regards
Wolfgang