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:
@@ -2394,8 +2394,8 @@ void wxWindowMac::SetScrollbar(int orient, int pos, int thumbVisible,
|
|||||||
{
|
{
|
||||||
if ( !m_hScrollBar->IsShown() )
|
if ( !m_hScrollBar->IsShown() )
|
||||||
m_hScrollBar->Show(true) ;
|
m_hScrollBar->Show(true) ;
|
||||||
m_hScrollBar->SetScrollbar( pos , thumbVisible , range , thumbVisible , refresh ) ;
|
|
||||||
}
|
}
|
||||||
|
m_hScrollBar->SetScrollbar( pos , thumbVisible , range , thumbVisible , refresh ) ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -2411,8 +2411,8 @@ void wxWindowMac::SetScrollbar(int orient, int pos, int thumbVisible,
|
|||||||
{
|
{
|
||||||
if ( !m_vScrollBar->IsShown() )
|
if ( !m_vScrollBar->IsShown() )
|
||||||
m_vScrollBar->Show(true) ;
|
m_vScrollBar->Show(true) ;
|
||||||
m_vScrollBar->SetScrollbar( pos , thumbVisible , range , thumbVisible , refresh ) ;
|
|
||||||
}
|
}
|
||||||
|
m_vScrollBar->SetScrollbar( pos , thumbVisible , range , thumbVisible , refresh ) ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
MacRepositionScrollBars() ;
|
MacRepositionScrollBars() ;
|
||||||
|
Reference in New Issue
Block a user