[
https://issues.apache.org/jira/browse/FLEX-34845?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Schmalle updated FLEX-34845:
------------------------------------
Description:
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
was:
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}
Environment:
Flash SWF - Not working
HTML - Note working
was:
Flash SWF - Not working
HTML - Not tested
> 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 - Note working
> 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}
> 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.4#6332)