You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2018/08/13 19:02:44 UTC

[royale-asjs] 05/09: handle explicit sizing

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

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

commit 2cf197e7e3b5e4671ccb8b32e7437b457b8a2e37
Author: Alex Harui <ah...@apache.org>
AuthorDate: Mon Aug 13 11:43:37 2018 -0700

    handle explicit sizing
---
 frameworks/projects/MXRoyale/src/main/royale/mx/controls/Image.as | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Image.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Image.as
index 06c722a..9fa266f 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Image.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Image.as
@@ -270,7 +270,7 @@ public class Image extends UIComponent
 		// should we now set the image's measured sizes?
 		measuredWidth = (element as HTMLImageElement).naturalWidth;
 		measuredHeight = (element as HTMLImageElement).naturalHeight;
-		setActualSize(measuredWidth, measuredHeight);
+        setActualSize(getExplicitOrMeasuredWidth(), getExplicitOrMeasuredHeight());
 		
 		dispatchEvent(new Event("complete"));