wxScrolledWindow so that no contents is ever hidden,
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31949
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
}
else
{
- m_hAdjust->upper = vw / m_xScrollPixelsPerLine;
+ m_hAdjust->upper = (vw+m_xScrollPixelsPerLine-1) / m_xScrollPixelsPerLine;
m_hAdjust->page_increment = (w / m_xScrollPixelsPerLine);
m_hAdjust->page_size = m_hAdjust->page_increment;
}
else
{
- m_vAdjust->upper = vh / m_yScrollPixelsPerLine;
+ m_vAdjust->upper = (vh+m_yScrollPixelsPerLine-1) / m_yScrollPixelsPerLine;
m_vAdjust->page_increment = (h / m_yScrollPixelsPerLine);
m_vAdjust->page_size = m_vAdjust->page_increment;
}
else
{
- m_hAdjust->upper = vw / m_xScrollPixelsPerLine;
+ m_hAdjust->upper = (vw+m_xScrollPixelsPerLine-1) / m_xScrollPixelsPerLine;
m_hAdjust->page_increment = (w / m_xScrollPixelsPerLine);
m_hAdjust->page_size = m_hAdjust->page_increment;
}
else
{
- m_vAdjust->upper = vh / m_yScrollPixelsPerLine;
+ m_vAdjust->upper = (vh+m_yScrollPixelsPerLine-1) / m_yScrollPixelsPerLine;
m_vAdjust->page_increment = (h / m_yScrollPixelsPerLine);
m_vAdjust->page_size = m_vAdjust->page_increment;