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 2016/11/02 15:14:39 UTC
[34/43] git commit: [flex-asjs] [refs/heads/refactor-sprite] -
replace UIBase dependency
replace UIBase dependency
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/0d06e658
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/0d06e658
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/0d06e658
Branch: refs/heads/refactor-sprite
Commit: 0d06e658dc87a1b6fd84e47565057c8e42f6a694
Parents: 7af78c1
Author: Alex Harui <ah...@apache.org>
Authored: Fri Oct 28 23:20:14 2016 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Nov 1 07:59:02 2016 -0700
----------------------------------------------------------------------
.../main/flex/org/apache/flex/core/BrowserResizeListener.as | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0d06e658/frameworks/projects/Core/src/main/flex/org/apache/flex/core/BrowserResizeListener.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/BrowserResizeListener.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/BrowserResizeListener.as
index a8fb5c0..441bfee 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/BrowserResizeListener.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/BrowserResizeListener.as
@@ -109,11 +109,14 @@ COMPILE::SWF
}
}
+ /**
+ * @flexjsignorecoercion org.apache.flex.core.ILayoutChild
+ */
private function resizeHandler(event:Event):void
{
COMPILE::SWF
{
- var initialView:UIBase = app.initialView as UIBase;
+ var initialView:ILayoutChild = app.initialView as ILayoutChild;
var constrainedWidth:Number = Math.max(isNaN(minWidth) ? 0 : minWidth, app.$displayObject.stage.stageWidth);
var constrainedHeight:Number = Math.max(isNaN(minHeight) ? 0 : minHeight, app.$displayObject.stage.stageHeight);
if (!isNaN(initialView.percentWidth) && !isNaN(initialView.percentHeight))
@@ -125,7 +128,7 @@ COMPILE::SWF
}
COMPILE::JS
{
- var initialView:UIBase = app.initialView as UIBase;
+ var initialView:ILayoutChild = app.initialView as ILayoutChild;
var element:HTMLElement = app.element;
if (!isNaN(initialView.percentWidth) || !isNaN(initialView.percentHeight)) {
element.style.height = window.innerHeight + 'px';