flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [34/43] git commit: [flex-asjs] [refs/heads/refactor-sprite] - replace UIBase dependency
Date Wed, 02 Nov 2016 15:14:39 GMT
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 <aharui@apache.org>
Authored: Fri Oct 28 23:20:14 2016 -0700
Committer: Alex Harui <aharui@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';


Mime
View raw message