[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
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