flex button spacing in a horizontal list

Posted by pfunc on Stack Overflow See other posts from Stack Overflow or by pfunc
Published on 2010-04-26T15:19:19Z Indexed on 2010/04/26 15:23 UTC
Read the original article Hit count: 203

Filed under:

How do you dynamically resize buttons in a horizontal list to fit the text size?

I am pulling in my button text from xml and it seems that it resizes all the buttons to the first items text. I am wrapping my button inside a canvas, not setting widths for either of them.

Basically I need all the buttons to resize to their text, and have them all spaced evenly as well.

© Stack Overflow or respective owner

Related posts about flex