jiangtiandao / flexlib

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

Bad behavior with SuperTabNavigator when dynamically create new Tab with icon #258

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a button to dynamically add new tab with icon on a SuperTabNavigator
2. Click on this button to add new tabs

What is the expected output? 
- The expected output is tabs added without abnormal behavior

What do you see instead?
- Every time a new tab is created the one who had the focus has its content
(icon + label) moving from the top-left of the tab to its original position

Please provide any additional information below.

Configuration:
- Flex Builder 3 in Eclipse
- FlexLib 2.3

Sample:
(see attached file)

There is two type of tab, one in action-script and one in mxml
They both are equal

- Adding a new action-script tab to SuperTabNavigator works fine
- Adding the same tab but an mxml one doesn't

- Adding a new action-script or mxml tab to TabNavigator works fine
-> meanings that the issue comes with SuperTabNavigator

- Adding a new mxml tab to both SuperTabNavigator and TabNavigator at the
same time makes TabNavigator to get the same bad behavior

Remarks:
- Tried everything but i'm really stuck
- Weirdly, removing the PopUpButton correct the issue
- Why adding an mxml or action-script tab (which are equal) makes a
difference ?

Original issue reported on code.google.com by jbpetit%...@gtempaccount.com on 5 Nov 2009 at 5:36

Attachments:

GoogleCodeExporter commented 8 years ago
In the same way if you keep adding action-script tab it automatically scroll to 
the
last tab. And if you do the same with mxml tab then it add the tab at the end 
and
scroll to the first one.
Again, what could be the difference between using action-script or mxml object ?

Original comment by jbpetit%...@gtempaccount.com on 6 Nov 2009 at 9:58