1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    27
    Vote Rating
    0
    Answers
    2
    billsalvucci is on a distinguished road

      0  

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

    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
    332
    Vote Rating
    12
    Answers
    12
    icfantv will become famous soon enough

      1  

    Default


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

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