You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Piotr Zarzycki (JIRA)" <ji...@apache.org> on 2017/03/04 14:56:45 UTC
[jira] [Assigned] (FLEX-34845) Simple ButtonBar does not layout
children correctly
[ https://issues.apache.org/jira/browse/FLEX-34845?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Piotr Zarzycki reassigned FLEX-34845:
-------------------------------------
Assignee: Piotr Zarzycki
> 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
>
> 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)