We need to update the scrollbar even if it's not shown, otherwise it can get stuck in a scrolled down position when the scrollbar disappears (such as deleting all items in a list control or resizing). Patch 1102197 for bug 861063

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Hock
2005-01-23 22:16:36 +00:00
parent 2bcdbe0fb9
commit 11ca2edf95

View File

@@ -2394,8 +2394,8 @@ void wxWindowMac::SetScrollbar(int orient, int pos, int thumbVisible,
{
if ( !m_hScrollBar->IsShown() )
m_hScrollBar->Show(true) ;
m_hScrollBar->SetScrollbar( pos , thumbVisible , range , thumbVisible , refresh ) ;
}
m_hScrollBar->SetScrollbar( pos , thumbVisible , range , thumbVisible , refresh ) ;
}
}
else
@@ -2411,8 +2411,8 @@ void wxWindowMac::SetScrollbar(int orient, int pos, int thumbVisible,
{
if ( !m_vScrollBar->IsShown() )
m_vScrollBar->Show(true) ;
m_vScrollBar->SetScrollbar( pos , thumbVisible , range , thumbVisible , refresh ) ;
}
m_vScrollBar->SetScrollbar( pos , thumbVisible , range , thumbVisible , refresh ) ;
}
}
MacRepositionScrollBars() ;