Update scroll position immediately after resizing view
authorChanghyup Jwa <ch.jwa@samsung.com>
Wed, 7 Aug 2013 07:30:04 +0000 (16:30 +0900)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Thu, 8 Aug 2013 02:19:25 +0000 (02:19 +0000)
[Title] Update scroll position immediately after resizing view
[Issue#] SE-48357
[Problem] NPRuntime has white space at the bottom for a while after click button
[Cause] Scroll position is not updated immediately after resizing view
        It was fixed before but missed by another patch
[Solution] Update scroll position immediately after resizing view

Change-Id: I19f40391bec6a1282b13fbcbe20da384bff61537

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

index 3b55cd7..9916c80 100755 (executable)
@@ -205,8 +205,10 @@ void PageClientImpl::updateViewportSize(const IntSize& viewportSize, const int a
 
 void PageClientImpl::updateVisibleContentRectSize(const IntSize& size)
 {
-    // update visible content rect's size
+    // update visible content rect's size and scroll position
     m_visibleContentRect.setSize(size);
+    m_visibleContentRect = adjustVisibleContentRect(m_visibleContentRect, m_scaleFactor);
+    m_viewImpl->setScrollPosition(m_visibleContentRect.location());
 }
 #endif