From afc09756ab52641177e6a5571c1257643b5aa620 Mon Sep 17 00:00:00 2001 From: Changhyup Jwa Date: Wed, 7 Aug 2013 16:30:04 +0900 Subject: [PATCH] Update scroll position immediately after resizing view [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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/WebKit2/UIProcess/API/efl/PageClientImpl.cpp b/Source/WebKit2/UIProcess/API/efl/PageClientImpl.cpp index 3b55cd7..9916c80 100755 --- a/Source/WebKit2/UIProcess/API/efl/PageClientImpl.cpp +++ b/Source/WebKit2/UIProcess/API/efl/PageClientImpl.cpp @@ -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 -- 2.7.4