flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Mclean (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLEX-25932) PopUpManager.addPopUp disables binding
Date Mon, 24 Jun 2013 21:22:20 GMT

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

Justin Mclean updated FLEX-25932:
---------------------------------

    Labels: easyfix easytest  (was: )
    
> PopUpManager.addPopUp disables binding
> --------------------------------------
>
>                 Key: FLEX-25932
>                 URL: https://issues.apache.org/jira/browse/FLEX-25932
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: PopUp Manager
>    Affects Versions: Adobe Flex SDK 4.1 (Release)
>         Environment: Affected OS(s): Windows
> Affected OS(s): Windows XP
> Browser: Firefox 3.x
> Language Found: English
>            Reporter: Adobe JIRA
>              Labels: easyfix, easytest
>
>       Steps to reproduce:
> Create simple component with binding between selected item of combobox and text :
> <mx:VBox xmlns:fx="http://ns.adobe.com/mxml/2009" 
> 		 xmlns:s="library://ns.adobe.com/flex/spark" 
> 		 xmlns:mx="library://ns.adobe.com/flex/mx">
> 	<mx:ComboBox id="cb" labelField="name">
> 		<mx:dataProvider>
> 			<s:ArrayCollection>
> 				<fx:Object name="item1"/>
> 				<fx:Object name="item2"/>
> 				<fx:Object name="item3"/>
> 				<fx:Object name="item4"/>
> 			</s:ArrayCollection>
> 		</mx:dataProvider>
> 	</mx:ComboBox>
> 	<mx:Text text="{cb.selectedItem.name}"/>
> </mx:VBox>
> Create an application using the component, and pop up the component when button is clicked
:
> <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" 
> 			   xmlns:component="component.*">
> 	<fx:Script>
> 		<![CDATA[
> 			import mx.managers.PopUpManager;
> 		]]
>       >
> 	</fx:Script>
> 	
> 	<mx:VBox id="container">
> 		<component:TestBindPopup id="popUp"/>
> 		<mx:Button label="click" click="{PopUpManager.addPopUp(popUp, this);}"/>
> 	</mx:VBox>
> </s:Application>
>  
>  Actual Results:
>  
> Binding is correct when component is not popped up, but after the addPopUp binding is
disabled.
> When the addPopUp is called, SystemManager does an "addChild" which calls a "removeChild"
on component container. During "removeChild" the container disables all binding of the component.

>  
>  Expected Results:
> Binding is enabled after the addPopup like in Flex 3.
>  
>  
>  Workaround (if any):
>  
> Call BindingManager.setEnabled(popUp, true) after the addPopup.
>     

--
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