1. #1
    Sencha User
    Join Date
    Jan 2012
    Location
    Rennes - France
    Posts
    172
    Answers
    2
    Vote Rating
    1
    Thierryg is on a distinguished road

      0  

    Default 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

  2. 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.

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,144
    Answers
    3505
    Vote Rating
    855
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    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.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #3
    Sencha User
    Join Date
    Jan 2012
    Location
    Rennes - France
    Posts
    172
    Answers
    2
    Vote Rating
    1
    Thierryg is on a distinguished road

      0  

    Default { 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.

Thread Participants: 1