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/30 06:07:59 UTC

[GitHub] [royale-asjs] yishayw opened a new issue #962: ViewStack Laying Its Children Out Vertically

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



[GitHub] [royale-asjs] estanglerbm edited a comment on issue #962: ViewStack Laying Its Children Out Vertically

Posted by GitBox <gi...@apache.org>.
estanglerbm edited a comment on issue #962:
URL: https://github.com/apache/royale-asjs/issues/962#issuecomment-735598400


   I also saw this, with <mx:ViewStack> of s:NavigatorContent.  The offset from the top got larger and larger, the more items (i.e. tabs) I added to ViewStack, making it unusable.  Setting width / height or x / y on NavigatorContent didn't help.


----------------------------------------------------------------
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 edited a comment on issue #962: ViewStack Laying Its Children Out Vertically

Posted by GitBox <gi...@apache.org>.
yishayw edited a comment on issue #962:
URL: https://github.com/apache/royale-asjs/issues/962#issuecomment-735607431


   A quick workaround is to add
   
   ```
   <mx:beads>
   	<mx:BasicLayout/>
   </mx:beads>
   ```
   
   to the viewstack, but that might have a bad effect on the sizing of children. I'll see if I can fix this with some help from @aharui .


----------------------------------------------------------------
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] estanglerbm commented on issue #962: ViewStack Laying Its Children Out Vertically

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


   I'm still seeing the issue, actually, and it kind of self-corrects, depending on the order of tabs that I click on.  No rhyme or reason that I can figure out.


----------------------------------------------------------------
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] estanglerbm commented on issue #962: ViewStack Laying Its Children Out Vertically

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


   I also saw this, with <mx:ViewStack> of <s:NavigatorContent>.  The offset from the top got larger and larger, the more items (i.e. tabs) I added to ViewStack, making it unusable.  Setting width / height or x / y on NavigatorContent didn't help.


----------------------------------------------------------------
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] estanglerbm commented on issue #962: ViewStack Laying Its Children Out Vertically

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


   Fix works great!


----------------------------------------------------------------
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 #962: ViewStack Laying Its Children Out Vertically

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


   Reverting bafb72696a39657f3373e820c86239b30bae7890 seems to fix it, but need to understand this better


----------------------------------------------------------------
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 #962: ViewStack Laying Its Children Out Vertically

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


   I am not sure why ViewStack is using Box layout


----------------------------------------------------------------
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] estanglerbm commented on issue #962: ViewStack Laying Its Children Out Vertically

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


   @yishayw Commit f8693c868163e509f474f7ed340dc830e8b25e5b fixed it perfectly.  Awesome!


----------------------------------------------------------------
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 #962: ViewStack Laying Its Children Out Vertically

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


   A quick workaround is to add
   
   <mx:beads>
   	<mx:BasicLayout/>
   </mx:beads>
   
   to the viewstack, but that might have a bad effect on the sizing of children. I'll see if I can fix this with some help from @aharui .


----------------------------------------------------------------
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 closed issue #962: ViewStack Laying Its Children Out Vertically

Posted by GitBox <gi...@apache.org>.
yishayw closed issue #962:
URL: https://github.com/apache/royale-asjs/issues/962


   


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