-
2 Dec 2012 6:53 PM #1
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
-
Best Answer Posted by haduki
if you have only 2 items
Code:container.insert(0,container.getInnerItems(1));
-
2 Dec 2012 7:06 PM #2
if you have only 2 items
Code:container.insert(0,container.getInnerItems(1));
I write English by translator.
-
2 Dec 2012 7:29 PM #3
Thanks for the quick reply.
That gave me what I think I needed to continue.
http://www.senchafiddle.com/#zeCk6


Reply With Quote