Hello I'm having a problem with the alignment of children within a veiwstack. I can't seem to overcome a left alignment. I have the horizontalAlign=center and the verticalAlign=middle for the containing HBox.
I have a viewstack in a HBox container. Both the viewstack and the hbox have height and width attributes set to 100%. Now any fixed sized elements (like a panel) placed in the viewstack will only align left. I didn't think a viewstack could effect alignment. thank you for any assistance. ;-) <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" horizontalAlign="center" verticalAlign="middle"> <mx:HBox horizontalAlign="center" verticalAlign="middle" height="100%" width="100%"> <mx:ViewStack id="viewstack1" backgroundColor="#ffffff" width="100%" height="100%"> <mx:Panel width="300" height="300" backgroundColor="#cccccc"> <mx:Label text="Hello Patrick"/> </mx:Panel> </mx:ViewStack> </mx:HBox> </mx:Application> Patrick -- 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/

