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 2021/11/02 11:50:56 UTC

[GitHub] [royale-asjs] yishayw commented on a change in pull request #1034: Under Spark, systemManager can be null in UITextFormat.measure()

yishayw commented on a change in pull request #1034:
URL: https://github.com/apache/royale-asjs/pull/1034#discussion_r740980677



##########
File path: frameworks/projects/MXRoyale/src/main/royale/mx/core/UITextFormat.as
##########
@@ -587,8 +587,8 @@ public class UITextFormat extends TextFormat
                     //sm.measuringElement.style.display = "none"; // to try to keep it hidden
                     measuringElement.style.opacity = 0;
                     measuringElement.style["pointer-events"] = "none";
-                    sm.element.appendChild(measuringElement);
-                    sm.measuringElement = measuringElement;
+                    if (sm) sm.element.appendChild(measuringElement);

Review comment:
       So if sm is null then no measuring element is created?




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

To unsubscribe, e-mail: issues-unsubscribe@royale.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org