OSDN Git Service

Move selection on screen when size changes.
authorLeon Scroggins <scroggo@google.com>
Wed, 19 Jan 2011 17:56:38 +0000 (12:56 -0500)
committerLeon Scroggins <scroggo@google.com>
Wed, 19 Jan 2011 18:19:02 +0000 (13:19 -0500)
Bug:3367446
Change-Id: Idad0fae69588fd6ce9602319385e165d7e2ff5dd

WebKit/android/jni/WebViewCore.cpp

index defa66e..de85f19 100644 (file)
@@ -1294,6 +1294,9 @@ void WebViewCore::setSizeScreenWidthAndScale(int width, int height,
         }
     }
 
+    // If this was in response to touching a textfield and showing the IME,
+    // the IME may now cover textfield.  Bring it back into view.
+    revealSelection();
     // update the currently visible screen as perceived by the plugin
     sendPluginVisibleScreen();
 }