Dialog Editor bug fixes, several other small ones

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@957 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1998-11-03 15:43:57 +00:00
parent 64d315544f
commit 386af6a2fa
10 changed files with 78 additions and 35 deletions

View File

@@ -927,7 +927,7 @@ void wxGenericGrid::AdjustScrollbars(void)
int noHorizSteps = 0;
int noVertSteps = 0;
if (m_totalGridWidth <= cw)
if (m_totalGridWidth + vertScrollBarWidth <= cw)
noHorizSteps = 0;
else
{
@@ -954,7 +954,7 @@ void wxGenericGrid::AdjustScrollbars(void)
noHorizSteps += nx;
}
if (m_totalGridHeight <= ch)
if (m_totalGridHeight + horizScrollBarHeight <= ch)
noVertSteps = 0;
else
{
@@ -981,7 +981,7 @@ void wxGenericGrid::AdjustScrollbars(void)
noVertSteps += ny;
}
if (m_totalGridWidth <= cw)
if (m_totalGridWidth + vertScrollBarWidth <= cw)
{
if ( m_hScrollBar )
m_hScrollBar->Show(FALSE);
@@ -993,7 +993,7 @@ void wxGenericGrid::AdjustScrollbars(void)
m_hScrollBar->Show(TRUE);
}
if (m_totalGridHeight <= ch)
if (m_totalGridHeight + horizScrollBarHeight <= ch)
{
if ( m_vScrollBar )
m_vScrollBar->Show(FALSE);