View Full Version : Composite field without width

25 Oct 2010, 10:45 PM
In my application i am using lots of composite fields, in this way...

xtype : 'compositefield',
hideLabel : true,
items : [ {
xtype : 'displayfieldxtype',
width : 365,
value : 'Numbers scored'

}, {
xtype : 'textfield',
flex : 0.3
}, {
xtype : 'displayfieldxtype',
value : '/10',
flex : 1
} ]

I want to avoid width as much as possible. But when i use flex in place of width... I need to give different flex in every composite field with respect to the components used in it, which increases the work. And also when i change the resolution of screen, the place of components changes which looks clumsy. Is there any way of setting the components in a good way in composite field, without using width?


26 Oct 2010, 2:09 AM
Can anyone kindly help me in this regard?