Simple layout question....


hi guys.

   trying align elements inside panel container. panel has horizontal layout , 2 vgroup inside it. vgroup has horizontalalign=right setup. want group inside vgroup align left. can't work. helps appreciated. thanks.

 

 

 

 

<s:panel  width="600" height="480">

<s:layout>

<s:horizontallayout paddingtop="10"/>

</s:layout>

 

 

//first vgroup

 

 

<s:vgroup paddingtop="5" horizontalalign="center">

<mx:image source="{picturebig}" width="295" height="271"/>

<s:button id="switchview" label="view current" click="switchview_clickhandler(event)"/>

</s:vgroup>

 

 

//second vgroup

 

<s:vgroup horizontalalign="right" width="220" paddingtop="5">

 

 

 

 

<s:hgroup  verticalalign="middle">

<s:label stylename="label" text="aaaaa"/>

<s:textinput stylename="label" text="{datafromclick.getitemat(0).dvd}"/>

</s:hgroup>

 

 

 

 

 

----

---- //at least 3 hgroups here....

----

 

 

 

 

 

<s:hgroup  verticalalign="middle">

<s:label stylename="label" text="bbbbb"/>

<s:textinput stylename="label" text="{datafromclick.getitemat(0).dvd}"/>

</s:hgroup>

 

 

 

 

//i want last hgroup align left...

<s:hgroup  verticalalign="middle">

<s:textinput stylename="label" text="{datafromclick.getitemat(0).dvd}"/>

</s:hgroup>

 

 

 

 

 

 

</s:vgroup>

 

so want 1 vgroup along left edge , other vgroup along right edge? relative position way go (left="0", right="0"), assuming in container permits this.



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