This closes #20
Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/3c8a9e74 Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/3c8a9e74 Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/3c8a9e74 Branch: refs/heads/master Commit: 3c8a9e742755136cd623029be1c3df14bd6a8b61 Parents: 7445d3e Author: Harbs <ha...@in-tools.com> Authored: Wed Nov 18 19:19:26 2015 +0200 Committer: Harbs <ha...@in-tools.com> Committed: Wed Nov 18 19:19:26 2015 +0200 ---------------------------------------------------------------------- frameworks/projects/airspark/src/spark/components/Window.as | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/3c8a9e74/frameworks/projects/airspark/src/spark/components/Window.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/airspark/src/spark/components/Window.as b/frameworks/projects/airspark/src/spark/components/Window.as index c6472e6..cec6baa 100644 --- a/frameworks/projects/airspark/src/spark/components/Window.as +++ b/frameworks/projects/airspark/src/spark/components/Window.as @@ -749,7 +749,7 @@ public class Window extends SkinnableContainer implements IWindow */ override public function get maxHeight():Number { - if (nativeWindow && !maxHeightChanged) + if (nativeWindow && nativeWindow.maxSize && !maxHeightChanged) return nativeWindow.maxSize.y - chromeHeight(); else return _maxHeight; @@ -797,7 +797,7 @@ public class Window extends SkinnableContainer implements IWindow */ override public function get maxWidth():Number { - if (nativeWindow && !maxWidthChanged) + if (nativeWindow && nativeWindow.maxSize && !maxWidthChanged) return nativeWindow.maxSize.x - chromeWidth(); else return _maxWidth; @@ -851,7 +851,7 @@ public class Window extends SkinnableContainer implements IWindow */ override public function get minHeight():Number { - if (nativeWindow && !minHeightChanged) + if (nativeWindow && nativeWindow.minSize && !minHeightChanged) return nativeWindow.minSize.y - chromeHeight(); else return _minHeight; @@ -899,7 +899,7 @@ public class Window extends SkinnableContainer implements IWindow */ override public function get minWidth():Number { - if (nativeWindow && !minWidthChanged) + if (nativeWindow && nativeWindow.minSize && !minWidthChanged) return nativeWindow.minSize.x - chromeWidth(); else return _minWidth;