Results 1 to 2 of 2

Thread: adding widgets to a container from right to left

  1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    31
    Answers
    2
    Vote Rating
    1
      0  

    Default Answered: adding widgets to a container from right to left

    I often need to add to a container and I want the children to be added starting from the right of the container's edge instead of the left.
    ContentPanel has a buttonAlign which I can set to BoxLayoutPack.END to achieve this. I want to be able to do the same thing when adding any widgets to the container.

    I believe TableRowLayout used to be recommended for this, but it is not available in 3.0.1

  2. Take a look at the HBoxLayoutContainer and specifically the "Pack: end" button:

    http://www.sencha.com/examples/#ExamplePlace:hboxlayout

  3. #2
    Ext GWT Premium Member icfantv's Avatar
    Join Date
    Sep 2011
    Location
    Superior, CO
    Posts
    413
    Answers
    20
    Vote Rating
    21
      1  

    Default

    Take a look at the HBoxLayoutContainer and specifically the "Pack: end" button:

    http://www.sencha.com/examples/#ExamplePlace:hboxlayout

Posting Permissions

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