mik3e
9 Feb 2012, 1:18 PM
Hi Guys,
Can anyone give me a hint, how to align a component horizontal to the right in a container? I´ve tried different ways but didn´t get it to work.
I need two columns where the items in the left column are aligned to the left and the items in the right columns are aligned to the right:
...
xtype: 'container',
layout: 'hbox',
items: [{
xtype: 'label',
text: 'Michael Fürst (m.fuerst@wolkenkraft.com)',
flex: 1
},{
xtype: 'container',
layout: 'hbox',
flex: 1,
align:'right',
// THIS ITEM SHOULD BE ALIGNED RIGHT:
items: [{
xtype: 'label',
text: 'Text'
}]
....
Thanks & Ciao,
Mike
Can anyone give me a hint, how to align a component horizontal to the right in a container? I´ve tried different ways but didn´t get it to work.
I need two columns where the items in the left column are aligned to the left and the items in the right columns are aligned to the right:
...
xtype: 'container',
layout: 'hbox',
items: [{
xtype: 'label',
text: 'Michael Fürst (m.fuerst@wolkenkraft.com)',
flex: 1
},{
xtype: 'container',
layout: 'hbox',
flex: 1,
align:'right',
// THIS ITEM SHOULD BE ALIGNED RIGHT:
items: [{
xtype: 'label',
text: 'Text'
}]
....
Thanks & Ciao,
Mike