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/10/14 08:37:16 UTC

[GitHub] [royale-asjs] piotrzarzycki21 opened a new issue #919: Uncaught RangeError: Maximum call stack size exceeded - in spark Group with mx Image

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


   In project which we are working on using Emulation components we have faced following exception:
   
   ```
   Uncaught RangeError: Maximum call stack size exceeded
       at spark.layouts.HorizontalLayout.spark_layouts_HorizontalLayout_measureReal (HorizontalLayout.js:657)
       at spark.layouts.HorizontalLayout.measure (HorizontalLayout.js:874)
       at spark.components.Group.spark.components.supportClasses.GroupBase.measure (GroupBase.js:151)
       at spark.components.Group.spark.components.supportClasses.GroupBase.get__measuredWidth (GroupBase.js:320)
       at spark.layouts.HorizontalLayout.measure (HorizontalLayout.js:875)
       at spark.components.Group.spark.components.supportClasses.GroupBase.measure (GroupBase.js:151)
       at spark.components.Group.spark.components.supportClasses.GroupBase.get__measuredWidth (GroupBase.js:320)
       at spark.layouts.HorizontalLayout.measure (HorizontalLayout.js:875)
       at spark.components.Group.spark.components.supportClasses.GroupBase.measure (GroupBase.js:151)
       at spark.components.Group.spark.components.supportClasses.GroupBase.get__measuredWidth (GroupBase.js:320)
   ```
   
   It occurs when we put mx:Image inside spark Group container with HorizontalLayout:
   ```
   <s:Group width="100%" height="100%" right="15">
   		   <s:layout>
   				<s:HorizontalLayout 
   					verticalAlign="middle"
   					paddingLeft="6"
   					paddingRight="6"
   					gap="2"
   					/>
   			</s:layout> 
   			<mx:Image />
   			<s:Label text="Test" />
   		</s:Group>
   ```
   
   I'm attaching simple project which reproduce that issue. It is setup with [Moonshine IDE 3.0](https://moonshine-ide.com/downloads/releases/dev/windows/Moonshine-3.0.0.exe). There is also maven pom file. 
   
   [HorizontalLayoutIssue.zip](https://github.com/apache/royale-asjs/files/5376791/HorizontalLayoutIssue.zip)
   
   


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