-
16 Aug 2012 5:11 AM #1
Unanswered: vertically centre button inside toolbar
Unanswered: vertically centre button inside toolbar
I have been adding buttons inside a toolbar like so: (this would be an item in a container)
But the buttons don't get placed in the centre (vertically) of the toolbar, and it looks really bad. How do I centre them?Code:{ xtype: 'toolbar', docked: 'top', items: [ { xtype: 'button', docked: 'left', text: 'Back' }, { xtype: 'button', docked: 'right', text: 'Confirm' } ] }
-
16 Aug 2012 6:15 AM #2
You can try placing a container in the toolbar with a hbox layout with a center alignment, then putting the buttons in that container. I'm not sure I am understanding what you want to achieve.
-
16 Aug 2012 6:41 AM #3
If you look at the toolbar attachment I added, I want the button that says 'Search Schools' to be in the middle of the toolbar, not at the top. The same thing happens with or without the title set.
-
16 Aug 2012 7:47 AM #4
Search in the CSS for buttons that go on the toolbar and check if there is padding or margins on it.
like .x-toolbar {
or .x-toolbar .x-button {


Reply With Quote