I have a problem with the TabNavigator
. The labels of the tabs are getting truncated and once the user places their mouse over the tab it redraws again. Is there anyway to redraw the label of the tab programmatically?
Asked
Active
Viewed 1,141 times
3

Jason Towne
- 8,014
- 5
- 54
- 69

Naveen
- 141
- 2
- 16
-
I have the same problem when I use bindings. If someone has a solution... I'm interested – Epharion May 18 '11 at 08:51
3 Answers
0
I had the same problem with TabNavigator. It was related to TitleWindow where my TabNavigator was located.
This is cool solution from - How to Show a Tab Navigator in a Popup Window
package
{
import mx.containers.TabNavigator;
import mx.controls.Button;
import mx.events.FlexEvent;
public class PopUpFriendlyTabNavigator extends TabNavigator
{
public function PopUpFriendlyTabNavigator()
{
super();
this.addEventListener (FlexEvent.CREATION_COMPLETE, onCreationComplete);
}
private function onCreationComplete(event:FlexEvent):void
{
this.removeEventListener(FlexEvent.CREATION_COMPLETE, onCreationComplete);
var firstTab:Button = getTabAt(0);
if (firstTab)
{
firstTab.invalidateDisplayList();
firstTab.validateNow();
}
}
}
}

Jarek Szczepański
- 189
- 3
- 8