flex-users / flexlib

Open Source Flex components library.
github.com/flex-users/flexlib
MIT License
206 stars 88 forks source link

SuperTabNavigator Scrolling tab bug #306

Open nicoulaj opened 13 years ago

nicoulaj commented 13 years ago

Originally filed by nicolas....@gmail.com on 2010-05-14T23:35:17

What steps will reproduce the problem?

  1. Set the tabWidth to 150 and the minWidth to 100
  2. Disable the popup to get the scrolling buttons
  3. Add as many tab as possible to exceed the size of the canvas and display the scrolling button

What is the expected output? What do you see instead? We should see the scrolling button showing up when the size exceed the canvas size. They don't appear properly as the calculation is based on the minWidth and not the width.

What version of the product are you using? On what operating system? Flex 3.

Please provide any additional information below. Here is the fix. Please integrate with next version of flexlib:

In function: updateDisplayList(unscaledWidth:Number,unscaledHeight:Number):void Line: 1022 Replace: tabBar.numChildren * _minTabWidth by: tabBar.numChildren * tabBar.getStyle("tabWidth")

It fix the problem for me ... maybe there is a more elegant solution. Doug ... it's your call.

Thanks again for all these great components.