can we move horizontalAlign and verticalAlign of containers which are overlayed to css ?


hi ,

 

i have got numerous hboxes and  vboxes overlayed in application , when try move styles of  hboxes , vboxes horizontalalign , verticalalign it  has visual difference cos takes precedence of parent  container though have specified seperate css files the  containers.


eg :

 

<mx:hbox horizontalalign="left"  verticalalign="middle">

     <mx:hbox  horizontalalign="right" verticalalign="middle">

      </mx:hbox>

</mx:hbox>

 

so suppose got 2 css files 1 for  top level hbox , 1 child hbox

 

its kinda taking alignment  of top level hbox. should ?

 

regards,

ajantha

hi ajantha,

 

i don't think there should problem using , working on...there no such precedence kind of thing problem mentioned..

 

can please post screenshot depicting problem or can please elaborate on this..??

 

actually in below mxml code elements or controls placed in top level hbox aligned left , aligned vertically in middle....and elements within inner hbox horizontally aligned right , aligned vertically in middle...

 

<mx:hbox horizontalalign="left"  verticalalign="middle">

     <mx:hbox  horizontalalign="right" verticalalign="middle">

      </mx:hbox>

</mx:hbox>

 

say suppose have used below mxml code ...

 

<mx:hbox

 

 

left="100" top="100" backgroundcolor="red" horizontalalign="left" verticalalign="middle" width="400" height="300">

 

 

<mx:hbox backgroundcolor="blue" horizontalalign="right" verticalalign="middle" width="250" height="200">

 

 

<mx:text width="100%" fontsize="14" text="i aligned horizontally right , vertically in middle in inner hbox"/>

 

 

</mx:hbox>

 

 

</mx:hbox>

 

 

then below...please see screenshot..

 

vb.gif

 

thanks,

bhasker chari



More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

CS5 Adobe Media Encoder: Encode failed because the source duration is nil.

cf_sql_integer vs cf_sql_bigint vs cf_sql_int??

localhost/joomla15/administrator doesnt work - Joomla! Forum - community, help and support