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 <[email protected]> Authored: Fri Sep 4 11:10:45 2015 -0700 Committer: Alex Harui <[email protected]> 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) {
