You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2014/10/18 07:43:27 UTC
[10/30] git commit: [flex-asjs] [refs/heads/develop] - set size on
bitmap if needed
set size on bitmap if needed
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/d2bbaab0
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/d2bbaab0
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/d2bbaab0
Branch: refs/heads/develop
Commit: d2bbaab02e18b59285a50aa9bad6a65693c037b2
Parents: 22365eb
Author: Alex Harui <ah...@apache.org>
Authored: Mon Oct 13 12:45:40 2014 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Oct 17 22:38:43 2014 -0700
----------------------------------------------------------------------
.../FlexJSUI/src/org/apache/flex/html/beads/ImageView.as | 5 +++++
1 file changed, 5 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d2bbaab0/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/ImageView.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/ImageView.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/ImageView.as
index 2bbed3e..86d5a07 100644
--- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/ImageView.as
+++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/ImageView.as
@@ -107,8 +107,13 @@ package org.apache.flex.html.beads
if (isNaN(host.explicitWidth) && isNaN(host.percentWidth))
host.dispatchEvent(new Event("widthChanged"));
+ else
+ bitmap.width = UIBase(_strand).width;
+
if (isNaN(host.explicitHeight) && isNaN(host.percentHeight))
host.dispatchEvent(new Event("heightChanged"));
+ else
+ bitmap.height = UIBase(_strand).height;
}