1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    32
    Vote Rating
    0
    Answers
    5
    paulroth3d is on a distinguished road

      0  

    Default Answered: How to reorder Hbox items

    Answered: How to reorder Hbox items


    Hello,

    How can one reorder items in an hbox?

    Specifically, if there was a panelA and panelB added (both with flex of 1) (so A is left B is right)

    How could one switch the order of those two around? (so panelB is left and A is right)

    I can change the container.items (.items) order, but I don't see how to reapply the layout.

    Is the only way to store the items, destroy the container, and create a new container with those items applied in a different order?

    thanks,
    Paul

  2. if you have only 2 items
    Code:
    container.insert(0,container.getInnerItems(1));

  3. #2
    Sencha User
    Join Date
    Apr 2010
    Location
    China
    Posts
    227
    Vote Rating
    20
    Answers
    64
    haduki will become famous soon enough haduki will become famous soon enough

      1  

    Default


    if you have only 2 items
    Code:
    container.insert(0,container.getInnerItems(1));
    I write English by translator.

  4. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    32
    Vote Rating
    0
    Answers
    5
    paulroth3d is on a distinguished road

      0  

    Default


    Thanks for the quick reply.

    That gave me what I think I needed to continue.

    http://www.senchafiddle.com/#zeCk6

Thread Participants: 1

Tags for this Thread