PDA

View Full Version : displayfield changes position when adding id



macgyverx86
22 Dec 2010, 7:54 AM
So i have 4 displayfields witch should be arranged horizontaly and i need id for only two af them (so i can change their value later), but when i add the id's some displayfields change position (the last label gets ontop the first label).

Has anyone an answer to this annoying thing? :-/



{
xtype: 'panel',
layout: 'hbox',
layoutConfig : {
type : 'hbox',
align : 'left',
pack : 'start'
},
header: false,
flex: 1,
items: [{
xtype: 'displayfield',
style: {
fontWeight: 'bold'
},
flex: 1.5,
value: 'label'.localize()
},{
xtype: 'displayfield',
value: 'label'.localize(),
flex: 1
},{
id: 'id1',
xtype: 'displayfield',
value: 'test',
flex: 1
},{
xtype: 'displayfield',
flex: 1,
value: 'label'.localize()
},{
id: 'id2',
xtype: 'displayfield',
value: 'test',
flex: 1
}]

Animal
22 Dec 2010, 7:56 AM
Don't use IDs