width is a property not a style. ----- Original Message ----- From: "helihobby" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Friday, December 14, 2007 7:32 AM Subject: [flexcoders] How come setStyle("width","100%") does not change container back to 100% ?
Hello, This is something that has been beugging me for a long time ( ever since Flex Beta 2 Beta ). When I set a container ( lets say VBox ) to 100% width using MXML inline than all is great. <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" creationComplete="init()"> If you set it using the setStyle("width","100%") in ActionScript 3 however: this.setStyle("width","100%"); its as if the set style does not take effect... My VBox remains the fixed width as it was when I original created it ... :( Is this a BUG ????? Am I missing something here ? Do we need to use StyleManager to refresh or something ... Tried to google this with no luck !!! Thanks in advance, Sean. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

