]> git.saurik.com Git - wxWidgets.git/commitdiff
We need to update the scrollbar even if it's not shown, otherwise it can get stuck...
authorKevin Hock <hockkn@yahoo.com>
Sun, 23 Jan 2005 22:16:36 +0000 (22:16 +0000)
committerKevin Hock <hockkn@yahoo.com>
Sun, 23 Jan 2005 22:16:36 +0000 (22:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/window.cpp

index ae3ead93cb798b9125b832e4bb1913b089b03032..c4562922362180a5f06c7e7d885c15d247552bbb 100644 (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() ;