Revert patch again, as the scrollbars are now always shown.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31962 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2005-02-12 12:36:12 +00:00
parent a2d3a3d1d3
commit bf67b13520
3 changed files with 10 additions and 10 deletions

View File

@@ -653,7 +653,7 @@ void wxScrollHelper::AdjustScrollbars()
else
{
int vVirt = m_targetWindow->GetVirtualSize().GetWidth();
m_xScrollLines = (vVirt+m_xScrollPixelsPerLine-1) / m_xScrollPixelsPerLine;
m_xScrollLines = vVirt / m_xScrollPixelsPerLine;
// Calculate page size i.e. number of scroll units you get on the
// current client window
@@ -687,7 +687,7 @@ void wxScrollHelper::AdjustScrollbars()
else // might need scrolling
{
int hVirt = m_targetWindow->GetVirtualSize().GetHeight();
m_yScrollLines = (hVirt+m_yScrollPixelsPerLine-1) / m_yScrollPixelsPerLine;
m_yScrollLines = hVirt / m_yScrollPixelsPerLine;
// Calculate page size i.e. number of scroll units you get on the
// current client window