]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed off-by-few-pixels error in horz scrollbar calculations (patch 575412)
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 3 Jul 2002 15:05:43 +0000 (15:05 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 3 Jul 2002 15:05:43 +0000 (15:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/listctrl.cpp

index 22cf70aa383df6eb9140c1b4e4831db20d0ab42a..4b8019f0342ed5ed8ba502ae92f10dfbab64f5dc 100644 (file)
@@ -3976,7 +3976,7 @@ void wxListMainWindow::RecalculatePositions(bool noRefresh)
         ResetVisibleLinesRange();
 
         SetScrollbars( m_xScroll, m_yScroll,
-                       (GetHeaderWidth() + m_xScroll - 1)/m_xScroll,
+                       GetHeaderWidth() / m_xScroll,
                        (entireHeight + m_yScroll - 1)/m_yScroll,
                        GetScrollPos(wxHORIZONTAL),
                        GetScrollPos(wxVERTICAL),