Results 1 to 3 of 3

Thread: Add spaces between buttons

  1. #1
    Sencha User
    Join Date
    Jan 2012
    Location
    Rennes - France
    Posts
    172
    Answers
    2
    Vote Rating
    1
      0  

    Default 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 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,551
    Answers
    3931
    Vote Rating
    1271
      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 @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  4. #3
    Sencha User
    Join Date
    Jan 2012
    Location
    Rennes - France
    Posts
    172
    Answers
    2
    Vote Rating
    1
      0  

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •