fixed off-by-few-pixels error in horz scrollbar calculations (patch 575412)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-07-03 15:05:43 +00:00
parent 552861bf30
commit c020c47e00

View 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),