You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2013/01/22 09:34:28 UTC
svn commit: r1436794 -
/flex/sdk/branches/develop/frameworks/projects/spark/src/spark/components/Application.as
Author: aharui
Date: Tue Jan 22 08:34:27 2013
New Revision: 1436794
URL: http://svn.apache.org/viewvc?rev=1436794&view=rev
Log:
Allow overriding for mustella
Modified:
flex/sdk/branches/develop/frameworks/projects/spark/src/spark/components/Application.as
Modified: flex/sdk/branches/develop/frameworks/projects/spark/src/spark/components/Application.as
URL: http://svn.apache.org/viewvc/flex/sdk/branches/develop/frameworks/projects/spark/src/spark/components/Application.as?rev=1436794&r1=1436793&r2=1436794&view=diff
==============================================================================
--- flex/sdk/branches/develop/frameworks/projects/spark/src/spark/components/Application.as (original)
+++ flex/sdk/branches/develop/frameworks/projects/spark/src/spark/components/Application.as Tue Jan 22 08:34:27 2013
@@ -1156,7 +1156,7 @@ public class Application extends Skinnab
// softKeyboard becoming visible, we need to compare against
// the height without the keyboard active
if (isSoftKeyboardActive && softKeyboardBehavior == "none" && resizeForSoftKeyboard)
- actualHeight += stage.softKeyboardRect.height;
+ actualHeight += softKeyboardRect.height;
return width > actualHeight ? "landscape" : "portrait";
}
@@ -1855,7 +1855,7 @@ public class Application extends Skinnab
}
// Get the keyboard size
- var keyboardRect:Rectangle = stage.softKeyboardRect;
+ var keyboardRect:Rectangle = softKeyboardRect;
if (keyboardRect.height > 0)
isSoftKeyboardActive = true;
@@ -2147,6 +2147,16 @@ public class Application extends Skinnab
if (!dispatchEvent(event))
event.preventDefault();
}
+
+ mx_internal var _softKeyboardRect:Rectangle;
+
+ mx_internal function get softKeyboardRect():Rectangle
+ {
+ if (_softKeyboardRect == null)
+ return stage.softKeyboardRect;
+
+ return _softKeyboardRect;
+ }
}
}