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].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.


Reply via email to