How can I have an mx:Window automatically resize to its content?
Posted
by Troy Gilbert
on Stack Overflow
See other posts from Stack Overflow
or by Troy Gilbert
Published on 2010-03-17T22:15:54Z
Indexed on
2010/03/18
1:51 UTC
Read the original article
Hit count: 499
I'm creating windows in a Flex application (AIR) using the mx:Window component. I'd like the window to be automatically sized to its content (because it will be dynamic), in the same way that an mx:Panel or mx:Box would be.
I've customized components before, so I'm somewhat familiar with the UIComponent lifecycle, but I'm not quite sure how best to do the logic for auto-sizing a container.
If it makes it easier, I'm not expecting that the window auto-size to its content at any time, thought that would be a bonus!
© Stack Overflow or respective owner