You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2020/11/25 09:27:06 UTC

[GitHub] [royale-asjs] yishayw opened a new issue #954: MX ViewStack Not Sizing To Content When Inner Child Changes Height

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


   In this app
   
   ```
   <?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"
   	xmlns:comp="components.*"
   	>
   	<fx:Style source="app-styles.css" />
   	<fx:Script>
   		<![CDATA[
   			private function onClick():void
   			{
   				myGroup.height = myGroup.height == 20 ? 200 : 20;
   			}
   		]]>
   	</fx:Script>		
   	<mx:ViewStack resizeToContent="true" width="100%" id="myViewStack">
   		<s:NavigatorContent width="100%" id="myVbox">
   			<s:Group id="myGroup" width="100%" height="20" style="background-color: blue"/>
   		</s:NavigatorContent>
   	</mx:ViewStack>
   	<s:Button click="onClick()" label="Click" bottom="0"/>
   </s:Application>
   
   ```
   
   Blue content should be visible after clicking button


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [royale-asjs] yishayw commented on issue #954: MX ViewStack Not Sizing To Content When Inner Child Changes Height

Posted by GitBox <gi...@apache.org>.
yishayw commented on issue #954:
URL: https://github.com/apache/royale-asjs/issues/954#issuecomment-733582848


   Calling ViewStack invlaidateSize() after a click will fix it.


----------------------------------------------------------------
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:
users@infra.apache.org