I need to add two buttons to the navigation bar, one right aligned and the other right aligned. If I create the buttons using a config object and set align: 'left' or align: 'right' it will work as expected.
My problem is that the buttons I am added have already been created, so I don't have the option to set align property via a config. I've tried something like...
Ext.apply(leftButton, {align: 'right'});
but this has no affect. I know there is a spacer that I can potentially apply, but for various reasons I'd rather use something like align or even a dock: 'right' if it was possible to specify that when adding to the nav bar.
Any suggestions?
Thanks,
Derek Brennan.
Aucun commentaire:
Enregistrer un commentaire