From: Kevin Hock Date: Sun, 23 Jan 2005 22:16:36 +0000 (+0000) Subject: We need to update the scrollbar even if it's not shown, otherwise it can get stuck... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/11ca2edf95b3b99733224001138d1dc7d57d2e31 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 --- diff --git a/src/mac/carbon/window.cpp b/src/mac/carbon/window.cpp index ae3ead93cb..c456292236 100644 --- a/src/mac/carbon/window.cpp +++ b/src/mac/carbon/window.cpp @@ -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() ;