Kevincosme / flexlib

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

SuperTabNavigator truncates labels with ... unnecessarily #59

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run the following application:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
layout="absolute" xmlns:code="http://code.google.com/p/flexlib/">
    <mx:HDividedBox width="100%" height="100%">
        <code:SuperTabNavigator width="100%" height="100%">
            <mx:VBox label="this is tab 1" width="100%" 
height="100%"/>
            <mx:VBox label="this is tab 2" width="100%" 
height="100%"/>
            <mx:VBox label="this is tab 3" width="100%" 
height="100%"/>
        </code:SuperTabNavigator>
        <mx:Spacer width="100%"/>
    </mx:HDividedBox>
</mx:Application>

2. Resize the HDividedBox to the left so the vertical scroll line overlaps 
with the middle of the right most tab.  Note some/all tabs truncated 
with ..., which seems reasonable.
3. Resize the HDividedBox to the right back to the initial position.  Note 
that the width of the tabs does not change and the tab labels are 
unnecessarily truncated with ...

What is the expected output? What do you see instead?

I'd expect that ... truncation not be performed if it is not necessary.  
If it was necessary at one point but becomes unnecessary later, I expect 
the tab widths to resize to avoid label truncation.

What version of the product are you using? On what operating system?

Using flexlib .2.1 on Windows XP SP2.

Please provide any additional information below.

Using Flex Builder 3, Milestone 3 Beta 2 (build 3.0.183654)

If I run the same application in Flex Builder 2 I see very similar 
behavior - one difference i noticed is that I have to drag the vertical 
scroll bar more to the left to force label truncation.  In Flex Builder 3, 
Milestone 3 Beta 1 I saw slightly different (worse) behavior with label 
truncation.

If there's a good workaround (say listening for a resize event and calling 
a method on the SuperTabNavigator to force re-evaluation of tab widths) 
I'd be interested to hear it.

Original issue reported on code.google.com by snowym...@gmail.com on 26 Oct 2007 at 5:54

GoogleCodeExporter commented 8 years ago

Original comment by dmcc...@gmail.com on 25 Dec 2007 at 2:30

GoogleCodeExporter commented 8 years ago

Original comment by dmcc...@gmail.com on 25 Dec 2007 at 4:14

GoogleCodeExporter commented 8 years ago

Original comment by dmcc...@gmail.com on 26 Dec 2007 at 11:10

GoogleCodeExporter commented 8 years ago

Original comment by dmcc...@gmail.com on 26 Dec 2007 at 11:32

GoogleCodeExporter commented 8 years ago

Original comment by dmcc...@gmail.com on 3 Jan 2008 at 8:29