flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Schmalle (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLEX-34845) Simple ButtonBar does not layout children correctly
Date Sun, 17 May 2015 21:54:59 GMT
Michael Schmalle created FLEX-34845:
---------------------------------------

             Summary: 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.0.3
         Environment: Flash SWF - Not working
HTML - Not tested
            Reporter: Michael Schmalle


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}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message