Applied [ 651649 ] Scrollbar not updated without resizing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18590 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -361,9 +361,15 @@ void wxScrollHelper::SetScrollbars(int pixelsPerUnitX,
|
|||||||
if (do_refresh && !noRefresh)
|
if (do_refresh && !noRefresh)
|
||||||
m_targetWindow->Refresh(TRUE, GetRect());
|
m_targetWindow->Refresh(TRUE, GetRect());
|
||||||
|
|
||||||
|
// TODO: check if we can use AdjustScrollbars always.
|
||||||
|
#ifdef __WXUNIVERSAL__
|
||||||
|
AdjustScrollbars();
|
||||||
|
#else
|
||||||
|
// This is also done by AdjustScrollbars, above
|
||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
m_targetWindow->MacUpdateImmediately() ;
|
m_targetWindow->MacUpdateImmediately() ;
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user