yishayw opened a new issue #962:
URL: https://github.com/apache/royale-asjs/issues/962


   In this app, clicking to select the second child, shows an offset from the 
top.
   
   ```
   <?xml version="1.0" encoding="utf-8"?>
   <s:Application 
        xmlns:fx="http://ns.adobe.com/mxml/2009";
        xmlns:s="library://ns.apache.org/royale/spark"
        xmlns:mx="library://ns.apache.org/royale/mx"
        >
        <fx:Script>
                <![CDATA[
                        private function onClick():void
                        {
                                myViewStack.invalidateSize();
                                myViewStack.selectedChild = myVbox2;
                        }
   
                ]]>
        </fx:Script>
        <mx:ViewStack resizeToContent="true" width="100%" id="myViewStack">
                <mx:VBox width="100%" id="myVbox1">
                        <s:Group id="myGroup1" width="100%" height="20" 
style="background-color: blue"/>
                </mx:VBox>
                <mx:VBox width="100%" id="myVbox2">
                        <s:Group id="myGroup2" width="100%" height="20" 
style="background-color: red"/>
                </mx:VBox>
        </mx:ViewStack>
        <s:Button click="onClick()" label="Click" bottom="0"/>
   </s:Application>
   
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to