If you set the alignment in the Application Container, every such single component with acquire the same property to do that better you should define that in CSS mode.
Regards.
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
--
----------------------------
Igor Costa
www.igorcosta.com __._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
![]()
SPONSORED LINKS
Software development tool Software development Software development services Home design software Software development company
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___
- [flexcoders] alignment problem when using a viewstack set t... bitfacepatrick
- Re: [flexcoders] alignment problem when using a viewst... Igor Costa
Reply via email to

