Kevincosme / flexlib

Automatically exported from code.google.com/p/flexlib
0 stars 0 forks source link

SuperTabNavigator relative positioning behavior #29

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run MXML snippet shown below.  

What is the expected output? What do you see instead?
TabNavigator displays with margin/border on canvas.
SuperTabTav displays differently.

What version of the product are you using? On what operating system?
flexlib 1.8, Flex 2.0.1, Firefox 2.0.4, Windows XP SP2

Please provide any additional information below.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
  xmlns:ns1="http://code.google.com/p/flexlib/">
  <mx:VBox height="500" width="500">
    <mx:Canvas height="100%" width="100%" backgroundColor="white">
      <mx:TabNavigator top="25" bottom="25" left="25" right="25"
          borderColor="red" borderStyle="solid">
        <mx:Canvas label="Tab 1" width="100%" height="100%"/>
        <mx:Canvas label="Tab 2" width="100%" height="100%"/>
      </mx:TabNavigator>
    </mx:Canvas>
    <mx:Canvas height="100%" width="100%" backgroundColor="white">
      <ns1:SuperTabNavigator top="25" bottom="25" left="25" right="25"
          borderColor="red" borderStyle="solid">
        <mx:Canvas label="Tab 1" width="100%" height="100%"/>
        <mx:Canvas label="Tab 2" width="100%" height="100%"/>
      </ns1:SuperTabNavigator>
    </mx:Canvas>
    <mx:Canvas height="100%" width="100%" backgroundColor="white">
      <ns1:SuperTabNavigator height="100%" width="100%"
          borderColor="red" borderStyle="solid">
        <mx:Canvas label="Tab 1" width="100%" height="100%"/>
        <mx:Canvas label="Tab 2" width="100%" height="100%"/>
      </ns1:SuperTabNavigator>
    </mx:Canvas>
  </mx:VBox>
</mx:Application>

Original issue reported on code.google.com by gstbu...@gmail.com on 4 Jun 2007 at 9:05

GoogleCodeExporter commented 8 years ago
When relative positioning is used (ie. top, left, etc.), the tabs do not appear 
and a
wide vertical scroll button appears instead.

Original comment by gstbu...@gmail.com on 5 Jun 2007 at 1:27

GoogleCodeExporter commented 8 years ago
Issue had to do with the left, right, top, and bottom styles getting inherited 
by the
SuperTabBar within the SuperTabNavigator. I removed support for left, right, 
top, and
bottom styles on a SuperTabBar if it is within a SuperTabNavigator. That fixes 
the
problem, but also means that you can't set those styles explicitly on the 
SuperTabBar
if you want to. 

Original comment by dmcc...@gmail.com on 24 Jun 2007 at 6:26

GoogleCodeExporter commented 8 years ago

Original comment by dmcc...@gmail.com on 30 Jun 2007 at 11:23

GoogleCodeExporter commented 8 years ago

Original comment by dmcc...@gmail.com on 25 Dec 2007 at 2:27

GoogleCodeExporter commented 8 years ago
Hi Doug,

I am using the SuperTabNavigator in Flex 4. The problem is the scroll buttons 
are too wide. How can I control the width of the scroll buttons? Please help!!!

Regards,

Tipesca

Original comment by paren.ti...@gmail.com on 6 Aug 2010 at 1:38