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:50:08 UTC

svn commit: r1436802 - /flex/sdk/branches/develop/mustella/as3/src/mustella/FakeSoftKeyboard.as

Author: aharui
Date: Tue Jan 22 08:50:07 2013
New Revision: 1436802

URL: http://svn.apache.org/viewvc?rev=1436802&view=rev
Log:
one more fix to fake softkeybd

Modified:
    flex/sdk/branches/develop/mustella/as3/src/mustella/FakeSoftKeyboard.as

Modified: flex/sdk/branches/develop/mustella/as3/src/mustella/FakeSoftKeyboard.as
URL: http://svn.apache.org/viewvc/flex/sdk/branches/develop/mustella/as3/src/mustella/FakeSoftKeyboard.as?rev=1436802&r1=1436801&r2=1436802&view=diff
==============================================================================
--- flex/sdk/branches/develop/mustella/as3/src/mustella/FakeSoftKeyboard.as (original)
+++ flex/sdk/branches/develop/mustella/as3/src/mustella/FakeSoftKeyboard.as Tue Jan 22 08:50:07 2013
@@ -92,15 +92,15 @@ public class FakeSoftKeyboard 
 			{
 				kbd.height = portraitHeight;
 				kbd.width = root.stage.stageWidth;
-				root["document"][kbdrect] = new Rectangle(0, 0, kbd.width, kbd.height);
 				kbd.y = root.stage.stageHeight - portraitHeight;
+				root["document"][kbdrect] = new Rectangle(0, kbd.y, kbd.width, kbd.height);
 			}
 			else
 			{
 				kbd.height = landscapeHeight;
 				kbd.width = root.stage.stageWidth;
-				root["document"][kbdrect] = new Rectangle(0, 0, kbd.width, kbd.height);
 				kbd.y = root.stage.stageHeight - landscapeHeight;
+				root["document"][kbdrect] = new Rectangle(0, kbd.y, kbd.width, kbd.height);
 			}
 			trace("sent softKeyboardActivate from", comp);
 			comp.dispatchEvent(new SoftKeyboardEvent(SoftKeyboardEvent.SOFT_KEYBOARD_ACTIVATE,