diff options
Diffstat (limited to 'WebCore/platform/wx/ScrollViewWx.cpp')
-rw-r--r-- | WebCore/platform/wx/ScrollViewWx.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/WebCore/platform/wx/ScrollViewWx.cpp b/WebCore/platform/wx/ScrollViewWx.cpp index 254ac9f..f556894 100644 --- a/WebCore/platform/wx/ScrollViewWx.cpp +++ b/WebCore/platform/wx/ScrollViewWx.cpp @@ -191,12 +191,12 @@ void ScrollView::platformSetScrollPosition(const IntPoint& scrollPoint) if (newScrollOffset.x < 0) newScrollOffset.x = 0; else if (newScrollOffset.x + cRect.width > vRect.width) - newScrollOffset.x = max(0, vRect.width - cRect.width - 1); + newScrollOffset.x = max(0, vRect.width - cRect.width); if (newScrollOffset.y < 0) newScrollOffset.y = 0; else if (newScrollOffset.y + cRect.height > vRect.height) - newScrollOffset.y = max(0, vRect.height - cRect.height - 1); + newScrollOffset.y = max(0, vRect.height - cRect.height); if (newScrollOffset == scrollOffset) return; @@ -291,8 +291,8 @@ void ScrollView::platformSetScrollbarModes() needsAdjust = true; } - if (m_data->vScrollbarMode != horizontalScrollbarMode() ) { - m_data->vScrollbarMode = horizontalScrollbarMode(); + if (m_data->vScrollbarMode != verticalScrollbarMode() ) { + m_data->vScrollbarMode = verticalScrollbarMode(); needsAdjust = true; } |