flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcl...@apache.org
Subject [09/50] [abbrv] git commit: [flex-sdk] [refs/heads/master] - Improved upon nativeWindow checks in recent commits (not sure exactly when this is necessary)
Date Mon, 11 Jan 2016 21:54:52 GMT
Improved upon nativeWindow checks in recent commits (not sure exactly when this is necessary)


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/a936d2ef
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/a936d2ef
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/a936d2ef

Branch: refs/heads/master
Commit: a936d2efa96e88279d121483527e06527f1a93d6
Parents: 48b38ca
Author: Harbs <harbs@in-tools.com>
Authored: Thu Nov 19 00:44:55 2015 +0200
Committer: Harbs <harbs@in-tools.com>
Committed: Thu Nov 19 00:44:55 2015 +0200

----------------------------------------------------------------------
 frameworks/projects/airspark/src/spark/components/Window.as  | 8 ++++----
 .../airspark/src/spark/components/WindowedApplication.as     | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/a936d2ef/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 cec6baa..bc89733 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 && nativeWindow.maxSize && !maxHeightChanged)
+        if (nativeWindow && !maxHeightChanged && !nativeWindow.closed &&
nativeWindow.maxSize)
             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 && nativeWindow.maxSize && !maxWidthChanged)
+        if (nativeWindow && !maxWidthChanged && !nativeWindow.closed &&
nativeWindow.maxSize)
             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 && nativeWindow.minSize && !minHeightChanged)
+        if (nativeWindow && !minHeightChanged && !nativeWindow.closed &&
nativeWindow.minSize)
             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 && nativeWindow.minSize && !minWidthChanged)
+        if (nativeWindow && !minWidthChanged && !nativeWindow.closed &&
nativeWindow.minSize)
             return nativeWindow.minSize.x - chromeWidth();
         else
             return _minWidth;

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/a936d2ef/frameworks/projects/airspark/src/spark/components/WindowedApplication.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/airspark/src/spark/components/WindowedApplication.as b/frameworks/projects/airspark/src/spark/components/WindowedApplication.as
index 8843e5a..71e55f5 100644
--- a/frameworks/projects/airspark/src/spark/components/WindowedApplication.as
+++ b/frameworks/projects/airspark/src/spark/components/WindowedApplication.as
@@ -690,7 +690,7 @@ public class WindowedApplication extends Application implements IWindow
      */
     override public function get maxHeight():Number
     {
-        if (nativeWindow && !maxHeightChanged)
+        if (nativeWindow && !maxHeightChanged && !nativeWindow.closed &&
nativeWindow.maxSize)
             return nativeWindow.maxSize.y - chromeHeight();
         else
             return _maxHeight;
@@ -738,7 +738,7 @@ public class WindowedApplication extends Application implements IWindow
      */
     override public function get maxWidth():Number
     {
-        if (nativeWindow && !maxWidthChanged)
+        if (nativeWindow && !maxWidthChanged && !nativeWindow.closed &&
nativeWindow.maxSize)
             return nativeWindow.maxSize.x - chromeWidth();
         else
             return _maxWidth;
@@ -792,7 +792,7 @@ public class WindowedApplication extends Application implements IWindow
      */
     override public function get minHeight():Number
     {
-        if (nativeWindow && !minHeightChanged)
+        if (nativeWindow && !minHeightChanged && !nativeWindow.closed &&
nativeWindow.minSize)
             return nativeWindow.minSize.y - chromeHeight();
         else
             return _minHeight;
@@ -840,7 +840,7 @@ public class WindowedApplication extends Application implements IWindow
      */
     override public function get minWidth():Number
     {
-        if (nativeWindow && !minWidthChanged)
+        if (nativeWindow && !minWidthChanged && !nativeWindow.closed &&
nativeWindow.minSize)
             return nativeWindow.minSize.x - chromeWidth();
         else
             return _minWidth;


Mime
View raw message