flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [3/5] git commit: [flex-asjs] [refs/heads/develop] - don't set width and height for SWF-side application. The width and height is controlled by SWF metadata and the stage
Date Fri, 09 Dec 2016 15:12:17 GMT
don't set width and height for SWF-side application.  The width and height is controlled by
SWF metadata and the stage


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/62b6ce07
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/62b6ce07
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/62b6ce07

Branch: refs/heads/develop
Commit: 62b6ce072a045e9abf22845db544575fd212c870
Parents: 6cb27cc
Author: Alex Harui <aharui@apache.org>
Authored: Fri Dec 9 06:55:37 2016 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Fri Dec 9 07:06:58 2016 -0800

----------------------------------------------------------------------
 .../main/flex/org/apache/flex/core/Application.as   | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/62b6ce07/frameworks/projects/HTML/src/main/flex/org/apache/flex/core/Application.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/core/Application.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/core/Application.as
index 8883673..effd24e 100644
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/core/Application.as
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/core/Application.as
@@ -571,5 +571,21 @@ package org.apache.flex.core
 			return $displayObject.stage;
 		}
 		
+        COMPILE::SWF
+        override public function set width(value:Number):void
+        {
+            // just eat this.  
+            // The stageWidth will be set by SWF metadata. 
+            // Setting this directly doesn't do anything
+        }
+        
+        COMPILE::SWF
+        override public function set height(value:Number):void
+        {
+            // just eat this.  
+            // The stageWidth will be set by SWF metadata. 
+            // Setting this directly doesn't do anything
+        }
+        
 	}
 }


Mime
View raw message