wiln / flexlib

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

SuperTabNavigator's drag over indicator not displayed #374

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Build the source code in Flash Builder 4.6(Flex SDK 4.6)
2. Run SuperTabNavigator Example
3. Drag a tab

What is the expected output? What do you see instead?
Expect to see a blue triangle as drag over indicator.
The drag over indicator is not displayed.

What version of the product are you using? On what operating system?
Source code of FlexLib on 2013-01-26.
Flashplayer_11_5_502_146
Flex SDK 4.6
Windows 7

Please provide any additional information below.
The following invocation is in SuperTab.createChildren():
            var indicatorClass:Class = getStyle("indicatorClass") as Class;
            if(indicatorClass) {
                indicator = new indicatorClass() as DisplayObject;
            }
            else {
                indicator = new UIComponent();
            }
...
closeButton.styleName = getStyle("tabCloseButtonStyleName");

However, when SuperTab.createChildren() is called, the getStyle always returns 
null.  Seems it's too early to call getStyle() increate children.

Original issue reported on code.google.com by mengq...@gmail.com on 26 Jan 2013 at 9:13

GoogleCodeExporter commented 8 years ago
Here's a local fix.

Original comment by mengq...@gmail.com on 26 Jan 2013 at 9:21

Attachments: