flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcl...@apache.org
Subject git commit: [flex-sdk] [refs/heads/develop] - FLEX-33655 Stop RTE inside SkinnablePopUpContainer
Date Mon, 19 Aug 2013 22:58:55 GMT
Updated Branches:
  refs/heads/develop 593da7511 -> 03759d771


FLEX-33655 Stop RTE inside SkinnablePopUpContainer


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

Branch: refs/heads/develop
Commit: 03759d771cc3d1da7230d392915ca0f4e3ceda34
Parents: 593da75
Author: Justin Mclean <jmclean@apache.org>
Authored: Tue Aug 20 03:36:16 2013 +1000
Committer: Justin Mclean <jmclean@apache.org>
Committed: Tue Aug 20 03:36:16 2013 +1000

----------------------------------------------------------------------
 .../spark/src/spark/components/SkinnablePopUpContainer.as    | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/03759d77/frameworks/projects/spark/src/spark/components/SkinnablePopUpContainer.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/src/spark/components/SkinnablePopUpContainer.as b/frameworks/projects/spark/src/spark/components/SkinnablePopUpContainer.as
index 5d1a7a3..37fd7fa 100644
--- a/frameworks/projects/spark/src/spark/components/SkinnablePopUpContainer.as
+++ b/frameworks/projects/spark/src/spark/components/SkinnablePopUpContainer.as
@@ -1170,9 +1170,11 @@ public class SkinnablePopUpContainer extends SkinnableContainer
         // the size and position are snapped.
         uninstallActiveResizeListener();
         
-		var topLevelApp:Application = FlexGlobals.topLevelApplication as Application;
-        var softKeyboardRect:Rectangle = topLevelApp.softKeyboardRect;
-        var isKeyboardOpen:Boolean = isOpen && (softKeyboardRect.height > 0);
+        var softKeyboardRect:Rectangle;
+		if ("softKeyboardRect" in FlexGlobals.topLevelApplication)
+			softKeyboardRect = FlexGlobals.topLevelApplication.softKeyboardRect;
+
+		var isKeyboardOpen:Boolean = isOpen && softKeyboardRect && (softKeyboardRect.height
> 0);
         
         // Capture start values if not set
         if (isNaN(softKeyboardEffectCachedYPosition))


Mime
View raw message