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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]