Forum /
Sencha Touch 2.x Forums /
Sencha Touch 2.x: Q&A /
Answered: Add spaces between buttons
Answered: Add spaces between buttons
Hi,
I wanna know how to add spaces between buttons.
Indeed, they are too closed and i wanna add more spaces between each one.
It it possible to change their position (vertical and horizontal) to the middle of the view.
Thanks for your reply.
Regards
Attached Images
Best Answer Posted by
Thierryg
In fact, i have used { xtype: 'spacer' } between each button item and it work fine.
Thus, it generate a dynamic space between each one and make the rendering uniform in the page whatever is the resolution.
Sencha - Senior Forum Manager
You can try using the margin config ont he buttons or adding a component with a height as an item between the buttons. Would try the margin config first.
{ xtype: 'spacer' },
{ xtype: 'spacer' },
In fact, i have used { xtype: 'spacer' } between each button item and it work fine.
Thus, it generate a dynamic space between each one and make the rendering uniform in the page whatever is the resolution.
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us