PDA

View Full Version : item Alignment in toolbar



spectrum24
28 Nov 2010, 5:23 PM
I have a toolbar docked at the top, which I am adding items to. As long as I want to left justify or center them all, it's no problem, but i want two buttons at the left, then an image in the center. I have tried all kinds of ways but can't seem to get this right. I am using something like

tBar.insert(0,{text: 'Map',
listeners: {
tap: {
element: 'el',
fn: function () { main.setActiveItem(2);}
}
}
});


tBar.insert(1,{text: 'List',
listeners: {
tap: {
element: 'el',
fn: function () { main.setActiveItem(0);}
}
}
});

tBar.insert(2,{xtype:'spacer',html: '<img src"imagefile.png"/>'});


The first two are fine, but i need the third insert in the center! Any help appreciated, been messing with this on and off for two days.

spectrum24
30 Nov 2010, 6:53 PM
No one aligns items in a tool bar? I'm still stuck on this one....