From bfca29edaa457339c7aa416c84f1ebabae9e6dc9 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Sun, 5 Jan 2003 20:27:25 +0000 Subject: [PATCH] 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 --- src/generic/scrlwing.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/generic/scrlwing.cpp b/src/generic/scrlwing.cpp index 3808f0b579..d1863b286a 100644 --- a/src/generic/scrlwing.cpp +++ b/src/generic/scrlwing.cpp @@ -361,9 +361,15 @@ void wxScrollHelper::SetScrollbars(int pixelsPerUnitX, if (do_refresh && !noRefresh) 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__ m_targetWindow->MacUpdateImmediately() ; #endif +#endif } // ----------------------------------------------------------------------------