set explicitWidth/Height so that initial view doesn't think it is sized to content
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/aac09e75 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/aac09e75 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/aac09e75 Branch: refs/heads/develop Commit: aac09e75258c7a4aae8a3c3d763bc7085606d2a3 Parents: 150811a Author: Alex Harui <[email protected]> Authored: Fri May 22 15:26:14 2015 -0700 Committer: Alex Harui <[email protected]> Committed: Fri May 22 16:04:11 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/aac09e75/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 c44a0bb..54edeb1 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 @@ -143,9 +143,9 @@ package org.apache.flex.core { initialView.applicationModel = model; if (isNaN(initialView.explicitWidth)) - initialView.setWidth(stage.stageWidth); + initialView.width = stage.stageWidth; if (isNaN(initialView.explicitHeight)) - initialView.setHeight(stage.stageHeight); + initialView.height = stage.stageHeight; this.addElement(initialView); var bgColor:Object = ValuesManager.valuesImpl.getValue(this, "background-color"); if (bgColor != null)
