Hello,

Wht you are doin is correct, and i didnt understand what exaclty u need ?
the Non selected tab must be decreased in height or not ? if so, shud it
decrease from the top or what ??

Here you get that gap because the selected tab height is bigger. but the non
selected tab ramains as the previous height.So u see the difference.

canu be little bit clearer ??



On Wed, Dec 9, 2009 at 2:30 PM, lavanya <[email protected]> wrote:

> HI all friends
>
>
> my requirement  is selected tab heigths should bigger...
>  i used these code . it working fine but the non selected heigth is
> decrese for top means in bottom  i geting space. code is below
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";>
>   <mx:Script>
>        <![CDATA[
>                import mx.controls.TabBar;
>           public function handleTabChange():void
>                {
>
>                   if(tn.selectedIndex==0)
>                   {
>                      tn.getTabAt(0).height =  80
>                      tn.getTabAt(1).height = 40
>                   }
>               if(tn.selectedIndex ==1)
>                   {
>                       tn.getTabAt(1).height =  80
>                       tn.getTabAt(0).height =  40
>
>                   }
>           }
>        ]]>
>   </mx:Script>
>  <mx:TabNavigator id="tn"  width="100%" height="100%"
> change="handleTabChange()">
>  <!-- Define each panel using a VBox container. -->
>   <mx:VBox label="Panel 1" id="panel1"  height="100%" width="100%"
> paddingTop="0">
>                <mx:Label text="TabNavigator container panel 1"/>
>            </mx:VBox>
>    <mx:VBox label="Panel 2" id="panel2" height="100%" width="100%"
> backgroundColor="black">
>                <mx:Label text="TabNavigator container panel 2"/>
>                 <mx:Label text="TabNavigator container panel 2"/>
>                 <mx:Label text="TabNavigator container panel 2"/>
>            </mx:VBox>
>  </mx:TabNavigator>
> </mx:Application>
>
> Thanks&regards
> lavanya bussa
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<flex_india%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
>
>


-- 
Regards,

Sri Tej
Golive Gaming Solutions PVT LTD

--

You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.


Reply via email to