I just glanced quickly at the code and it looks like it is an issue with the measuring of the label text for the selected tab. The bug only happens when the leading characters of the selected tab’s label starts with capital letters. If you try:
<mx:VBox label="afta"> <mx:VBox label="aFTA">
Or similar variations you’ll see the TabNavigator will layout correctly. If you can live with alternative labels then you might be ok, but if others have workarounds please share them.
Thanks, deepa
-----Original Message-----
Any luck with that workaround or has anyone else figured a way to fix this? _________________________________________ Jonathan Miranda Flexible Master of the Web "In the game of chess, it's important to never let your opponent see your pieces."
From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Deepa Subramaniam
Hi Jonathan –
Ok, that’s definitely a bug. It something to do with the initial layout of the tab, because if you select another tab and come back to the AFTA tab you’ll see that it doesn’t truncate (though it is a bit clipped). I’ll log this for you.
I’m not sure of a workaround off the top of my head – I’ll investigate a bit more and see if I can find one.
deepa
-----Original Message-----
Yup still doesn’t work. Even if I put in tabWidth to like 200 (no more percentages in Flex2 beta), it still messes up.
<mx:TabNavigator id="mainTN" width="70%" height="100%" backgroundAlpha="0" marginLeft="0" marginRight="0" change="refreshDG()"> <mx:VBox label="AFTA" width="100%" height="100%" backgroundAlpha="0">
</mx:VBox> <mx:VBox label="Emergency Monitor" width="100%" height="100%" backgroundAlpha="0">
</mx:VBox> <mx:VBox label="Communication" width="100%" height="100%" backgroundAlpha="0">
</mx:VBox> </mx:TabNavigator>
_________________________________________ Jonathan Miranda Flexible Master of the Web "In the game of chess, it's important to never let your opponent see your pieces."
From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Deepa Subramaniam
Hi Jonathan – I can’t seem to reproduce your case. I can’t size my TabNavigator such that the label for a tab is not truncated when not selected, and then truncated when selected. Could you send me some code that reproduces that case?
deepa
-----Original Message-----
Just noticed, when you click on a
tab…the font weight changes and the label doesn’t resize
now…so you’ll get “AFTA” becoming
“AFT…” even when there is plenty of room.
_________________________________________ Jonathan Miranda Flexible Master of the Web "In the game of chess, it's important to never let your opponent see your pieces."
|
- RE: [flexcoders] TabNavigator and Flex2 Beta Deepa Subramaniam
- RE: [flexcoders] TabNavigator and Flex2 Beta Jonathan Miranda