Adjust scroll position immediately after hiding IME
authorChanghyup Jwa <ch.jwa@samsung.com>
Thu, 16 May 2013 07:36:23 +0000 (16:36 +0900)
committerGerrit Code Review <gerrit2@kim11>
Tue, 4 Jun 2013 08:11:31 +0000 (17:11 +0900)
[Title] Adjust scroll position immediately after hiding IME
[Issue#] SE-38425
[Problem] Scroll position is updated too late after hiding IME
[Cause] If there's delay between resize view and didChangeViewportProperties(),
        scroll position is updated too late.
[Solution] Update drawing scroll position on UIProcess right after hiding IME

Change-Id: Ia3d56bf5340ea1e791cd860835f5f3740e6b0d23

Source/WebKit2/UIProcess/API/efl/PageClientImpl.cpp

index ba02a58..c2c0902 100755 (executable)
@@ -191,6 +191,8 @@ void PageClientImpl::updateViewportSize(const IntSize& viewportSize, const int a
 {
     // update viewport size of webkit
     m_visibleContentRect.setSize(viewportSize);
+    m_visibleContentRect = adjustVisibleContentRect(m_visibleContentRect, m_scaleFactor);
+    m_viewImpl->setScrollPosition(m_visibleContentRect.location());
     m_viewImpl->page()->setViewportSize(viewportSize);
 }
 #endif