PDA

View Full Version : Hbox layout that fits its contents?



js_coder
14 Sep 2009, 1:52 PM
Is there a way to use an hbox layout and make it expand its items as though it had a fit layout?

aconran
15 Sep 2009, 6:34 AM
Take a look at the align configurations which will allow you to stretch the container to its parent container.

align: 'stretch' may be what you are looking for.

15 Sep 2009, 6:40 AM
To elaborate on Aaron's suggestion:

Add this to your hbox container:

layoutConfig : { align : "stretch" }