From 7626292fa4b1dbb5233ee8d9f924d8c56e150b1f Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Fri, 4 Aug 2017 07:56:23 -0700 Subject: [PATCH] Don't reset scroll position to zero when window size changes Aside from just being the proper thing to do, this fixes scrolling with GTK3 when not using overlay scrollbars, where size events are somehow being generated during scrolling. See #17915 --- src/html/htmlwin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/html/htmlwin.cpp b/src/html/htmlwin.cpp index 9ae6d0df8e3e..54f416abbe95 100644 --- a/src/html/htmlwin.cpp +++ b/src/html/htmlwin.cpp @@ -818,7 +818,8 @@ void wxHtmlWindow::CreateLayout() ( wxHTML_SCROLL_STEP, wxHTML_SCROLL_STEP, ScrollSteps(m_Cell->GetWidth(), clientWidth - vscrollbar), - ScrollSteps(m_Cell->GetHeight(), clientHeight) + ScrollSteps(m_Cell->GetHeight(), clientHeight), + m_xScrollPosition, m_yScrollPosition ); } }