I'm doing this simple test. 
I increase the width of a viewstack. 
I then make the selectedChild of the viewstack invisible. 
I then decrease the viewsatck size again.

Problem
I dont expect the viewsatck's selectedChild to become visible (after 
i have made it invisible). 


Can someone suggest something please.

testcode
--------
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";>
<mx:HBox width="100%" height="80%">
 <mx:ViewStack id="vs" borderStyle="solid" width="75%" height="100%">
  <mx:Canvas id="search" backgroundColor="#FFFFCC" label="Search" 
width="100%" height="100%">
    <mx:Label text="Search Screen" color="#000000"/>
  </mx:Canvas>
 </mx:ViewStack>
</mx:HBox>
<mx:HBox>
 <mx:Button label="increase vs width" click="vs.percentWidth=100"/>
 <mx:Button label="make (in)visible" 
click="vs.selectedChild.visible=!vs.selectedChild.visible"/>
 <mx:Button label="decrease vs width" click="vs.percentWidth=75"/>
 </mx:HBox>     
</mx:Application>

Reply via email to