wiln / flexlib

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

Tabbar title change does not resize Tabbar #77

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create this app
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"
xmlns:code="http://code.google.com/p/flexlib/">

    <mx:Script>
        <![CDATA[

            [Bindable]
            private var tabTitle:String = "Test";

        ]]>
    </mx:Script>

    <mx:Form>
        <mx:FormItem label="Tab Title">
            <mx:TextInput text="{tabTitle}" change="tabTitle =
event.currentTarget.text" />
        </mx:FormItem>
    </mx:Form>

    <mx:TabNavigator width="100%" height="20%">
        <mx:VBox label="{tabTitle}" />
    </mx:TabNavigator>

    <code:SuperTabNavigator width="100%" height="20%">
        <mx:VBox label="{tabTitle}" />
    </code:SuperTabNavigator>

</mx:Application>

2. Compile & Launch
3. Change the title "Test" to something longer like "Very long title"

What is the expected output? What do you see instead?
I would expect that the SuperTabNavigator (bottom) behaves the same way as
the TabNavigator (top) which automatically resizes the Tabbar to fit the title.

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

Original issue reported on code.google.com by soenke.r...@gmail.com on 22 Jan 2008 at 1:56

GoogleCodeExporter commented 8 years ago

Original comment by dmcc...@gmail.com on 25 Jan 2008 at 5:45

GoogleCodeExporter commented 8 years ago

Original comment by dmcc...@gmail.com on 25 Jan 2008 at 6:07

GoogleCodeExporter commented 8 years ago

Original comment by dmcc...@gmail.com on 25 Jan 2008 at 6:18

GoogleCodeExporter commented 8 years ago

Original comment by dmcc...@gmail.com on 28 Jan 2008 at 2:36

GoogleCodeExporter commented 8 years ago
Thanks! I updated and it works!

Original comment by soenke.r...@gmail.com on 29 Jan 2008 at 4:33