You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ha...@apache.org on 2021/01/15 12:18:13 UTC

[royale-asjs] branch develop updated: Put invalidateSize() in the correct place.

This is an automated email from the ASF dual-hosted git repository.

harbs pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 5214437  Put invalidateSize() in the correct place.
     new 9380b51  Merge pull request #1040 from estanglerbm/selfitemrenderer-fix
5214437 is described below

commit 52144375f4c6f2372ec3a954a384624a0eb19aee
Author: Edward Stangler <es...@bradmark.com>
AuthorDate: Wed Jan 6 01:08:46 2021 -0600

    Put invalidateSize() in the correct place.
---
 .../main/royale/spark/components/beads/SelfItemRendererInitializer.as   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/SelfItemRendererInitializer.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/SelfItemRendererInitializer.as
index c627e00..ab4fa04 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/SelfItemRendererInitializer.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/SelfItemRendererInitializer.as
@@ -70,11 +70,11 @@ package spark.components.beads
 				sir.explicitHeight = NaN;
 				sir.percentHeight = NaN;
 				if (!plc.isHeightSizedToContent() && !clc.isHeightSizedToContent()) sir.percentHeight = 100;
-				sir.invalidateSize();
 			}
 			
 			sir.removeAllElements();
 			sir.addElement(child);
+			sir.invalidateSize();
 		}
 
 		/**