This is an automated email from the ASF dual-hosted git repository.
yishayw 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 19148bd More measurements happening, so need to check safety
19148bd is described below
commit 19148bd178dda163272cba0a4c6008dd7d5f966a
Author: Yishay Weiss <[email protected]>
AuthorDate: Thu Dec 10 15:35:37 2020 +0200
More measurements happening, so need to check safety
---
frameworks/projects/MXRoyale/src/main/royale/mx/containers/FormItem.as | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/FormItem.as
b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/FormItem.as
index cf62562..6174d30 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/FormItem.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/FormItem.as
@@ -686,7 +686,7 @@ public class FormItem extends Container
measuredWidth += extraWidth;
// need to include label for height
- var labelHeight:Number = labelObj.getExplicitOrMeasuredHeight();
+ var labelHeight:Number = labelObj ?
labelObj.getExplicitOrMeasuredHeight() : 0;
measuredMinHeight = Math.max(measuredMinHeight, labelHeight);
measuredHeight = Math.max(measuredHeight, labelHeight);