TileGroup does not fill the container
Posted
by
Luo Yong
on Stack Overflow
See other posts from Stack Overflow
or by Luo Yong
Published on 2012-07-04T09:12:24Z
Indexed on
2012/07/04
9:15 UTC
Read the original article
Hit count: 305
I put a TileGroup in a BorderContainer and set the width to 100%, but the content in the TileGroup did not fill the parent container, it leaves a big chunk of blank on the right part.
The code is:
<s:BorderContainer width="100%" height="100%">
<s:TileGroup width="100%" requestedColumnCount="2">
<s:Button>
button1
</s:Button>
<s:Button>
button2
</s:Button>
<s:Button>
button3
</s:Button>
</s:TileGroup>
</s:BorderContainer>
and the result is like this:
http://i.minus.com/iN39P7Us4cBm1.png
The width is already set to 100% but it does not work.
Is there any way to make the TileGroup fill the container like GridLayout does in Java swing?
http://www.java2s.com/Code/JavaImages/GridLayoutPane.PNG
Thank you very much.
© Stack Overflow or respective owner