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-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Miranda
Sent:
Thursday, February 02, 2006 7:58 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] TabNavigator and Flex2 Beta

 

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
Sent: Wednesday, February 01, 2006 1:04 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] TabNavigator and Flex2 Beta

 

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-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Miranda
Sent: Wednesday, February 01, 2006 11:25 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] TabNavigator and Flex2 Beta

 

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
Sent: Wednesday, February 01, 2006 12:03 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] TabNavigator and Flex2 Beta

 

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?


Thanks,

deepa

 

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Miranda
Sent: Wednesday, February 01, 2006 10:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] TabNavigator and Flex2 Beta

 

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.

Work-around for this bug?

 

_________________________________________

Jonathan Miranda

Flexible Master of the Web

"In the game of chess, it's important to never let your opponent see your pieces."

 








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to