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 2015/09/04 20:11:26 UTC
[3/3] git commit: [flex-asjs] [refs/heads/develop] - fix percent size
handling
fix percent size handling
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/d3197d6b
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/d3197d6b
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/d3197d6b
Branch: refs/heads/develop
Commit: d3197d6b5c142880fb2c226822c8e4985994bbb4
Parents: 68b9046
Author: Alex Harui <ah...@apache.org>
Authored: Fri Sep 4 11:10:45 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Sep 4 11:11:42 2015 -0700
----------------------------------------------------------------------
.../projects/Core/as/src/org/apache/flex/core/Application.as | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d3197d6b/frameworks/projects/Core/as/src/org/apache/flex/core/Application.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/as/src/org/apache/flex/core/Application.as b/frameworks/projects/Core/as/src/org/apache/flex/core/Application.as
index d4ba73a..54e45f0 100644
--- a/frameworks/projects/Core/as/src/org/apache/flex/core/Application.as
+++ b/frameworks/projects/Core/as/src/org/apache/flex/core/Application.as
@@ -182,13 +182,13 @@ package org.apache.flex.core
if (initialView)
{
initialView.applicationModel = model;
+ this.addElement(initialView);
if (!isNaN(initialView.percentWidth) && !isNaN(initialView.percentHeight))
- initialView.setWidthAndHeight(stage.stageWidth, stage.stageHeight);
+ initialView.setWidthAndHeight(stage.stageWidth, stage.stageHeight, true);
else if (!isNaN(initialView.percentWidth))
initialView.setWidth(stage.stageWidth);
else if (!isNaN(initialView.percentHeight))
initialView.setHeight(stage.stageHeight);
- this.addElement(initialView);
var bgColor:Object = ValuesManager.valuesImpl.getValue(this, "background-color");
if (bgColor != null)
{