size initial view if needed
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/917b9661 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/917b9661 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/917b9661 Branch: refs/heads/develop Commit: 917b9661412561d5c5af6a9c5726229ed6de5ef9 Parents: 65b7cb2 Author: Alex Harui <[email protected]> Authored: Tue May 5 07:40:31 2015 -0700 Committer: Alex Harui <[email protected]> Committed: Thu May 7 17:33:53 2015 -0700 ---------------------------------------------------------------------- .../projects/Core/as/src/org/apache/flex/core/Application.as | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/917b9661/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 0861645..a7d0a77 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 @@ -142,6 +142,10 @@ package org.apache.flex.core if (initialView) { initialView.applicationModel = model; + if (isNaN(initialView.explicitWidth)) + initialView.setWidth(stage.stageWidth); + if (isNaN(initialView.explicitHeight)) + initialView.setHeight(stage.stageHeight); this.addElement(initialView); dispatchEvent(new org.apache.flex.events.Event("viewChanged")); }
