PDA

View Full Version : [Solved] CompositeField components right alignment



ViciousFrank
12 Sep 2010, 10:03 PM
Hi !

Anyway to right align items in a composite field as we does with pack: 'end' in HBoxLayout ?

Thanks,


Frank

Condor
12 Sep 2010, 11:19 PM
Haven't tested, but you could try:

{
xtype: 'compositefield',
onRender: function(){
this.constructor.prototype.onRender.apply(this, arguments);
this.innerCt.layout.pack = 'end';
},
...
}

ViciousFrank
13 Sep 2010, 4:43 PM
It works !

Thanks Condor, you're the best ! :D