flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Harui (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FLEX-33381) Setting s:ComboBox#typicalItem produces unnecessarily long width
Date Sun, 17 Feb 2013 02:03:13 GMT

     [ https://issues.apache.org/jira/browse/FLEX-33381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alex Harui resolved FLEX-33381.
-------------------------------

    Resolution: Fixed

Committed revision 1446989
                
> Setting s:ComboBox#typicalItem produces unnecessarily long width
> ----------------------------------------------------------------
>
>                 Key: FLEX-33381
>                 URL: https://issues.apache.org/jira/browse/FLEX-33381
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: ComboBox
>    Affects Versions: Apache Flex 4.9.0
>            Reporter: JC Franco
>            Assignee: Alex Harui
>              Labels: ComboBox, Flex, Spark, typicalItem
>
> Setting s:ComboBox#typicalItem produces unnecessarily long width. By contrast, s:DropDownList
behaves as expected when setting its typicalItem property.
> Sample application:
> <?xml version="1.0" encoding="utf-8"?>
> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
>                xmlns:s="library://ns.adobe.com/flex/spark"
>                xmlns:mx="library://ns.adobe.com/flex/mx"
>                minHeight="600"
>                minWidth="955">
>     <s:layout>
>         <s:VerticalLayout/>
>     </s:layout>
>     <fx:Script>
>         <![CDATA[
>             import mx.events.FlexEvent;
>             protected function cb_creationCompleteHandler(event:FlexEvent):void
>             {
>                 cb.textInput.typicalText = "Avenir Next Condensed Demi Bold Italic";
>             }
>         ]]>
>     </fx:Script>
>     <s:Label text="DropDownList works as expected"/>
>     <s:DropDownList requireSelection="true" typicalItem="Avenir Next Condensed Demi
Bold Italic">
>         <s:dataProvider>
>             <s:ArrayList>
>                 <fx:String>Avenir Next Condensed Demi Bold Italic</fx:String>
>             </s:ArrayList>
>         </s:dataProvider>
>     </s:DropDownList>
>     <s:Label text="ComboBox set to unnecesarily long width"/>
>     <s:ComboBox typicalItem="Avenir Next Condensed Demi Bold Italic">
>         <s:dataProvider>
>             <s:ArrayList>
>                 <fx:String>Avenir Next Condensed Demi Bold Italic</fx:String>
>             </s:ArrayList>
>         </s:dataProvider>
>     </s:ComboBox>
>     <s:Label text="Workaround: set ComboBox#textInput#tipicalText"/>
>     <s:ComboBox id="cb" creationComplete="cb_creationCompleteHandler(event)">
>         <s:dataProvider>
>             <s:ArrayList>
>                 <fx:String>Avenir Next Condensed Demi Bold Italic</fx:String>
>             </s:ArrayList>
>         </s:dataProvider>
>     </s:ComboBox>
> </s:Application>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message