flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Piotr Zarzycki (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FLEX-34845) Simple ButtonBar does not layout children correctly
Date Sat, 04 Mar 2017 14:57:45 GMT

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

Piotr Zarzycki resolved FLEX-34845.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: Apache FlexJS 0.8.0

> Simple ButtonBar does not layout children correctly
> ---------------------------------------------------
>
>                 Key: FLEX-34845
>                 URL: https://issues.apache.org/jira/browse/FLEX-34845
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: FlexJS
>    Affects Versions: Apache FlexJS 0.5.0
>         Environment: Flash SWF - Not working
> HTML - Note working
>            Reporter: Michael Schmalle
>            Assignee: Piotr Zarzycki
>             Fix For: Apache FlexJS 0.8.0
>
>
> The default horizontal layout is not calculating either the ButtonBar's preferred width
or the buttons are not sizing correctly.
> {code}
> <js:ViewBase xmlns:fx="http://ns.adobe.com/mxml/2009"
>              xmlns:js="library://ns.apache.org/flexjs/basic"
>              initComplete="initialize()">
>     <fx:Script><![CDATA[
>         private function initialize():void
>         {
>             var dataProvider:Array = ["one", "two", "three", "four", "five"];
>             buttonBar.dataProvider = dataProvider; // ArraySelectionModel
>         }
>         private function onChange():void
>         {
>             trace("Change " + buttonBar.selectedIndex);
>         }
>         ]]></fx:Script>
>     <js:ButtonBar id="buttonBar" change="onChange()"/>
> </js:ViewBase>
> {code}
> HTML Does not work and has error;
> *TextItemRendererFactoryForArrayData.as :: Line 128*
> *AS*
>   * var n:int = dp.length; 
> *JS*
>   * n = dp.length; <--- The variable dp is null in js



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message