]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/scrlwing.cpp
use SS_CENTERIMAGE to prevent wxStaticBitmap from stretching its bitmap; also a face...
[wxWidgets.git] / src / generic / scrlwing.cpp
index f65fb4b487ee62480ec3820e0db12671ebecd31e..8c40ecb8534b809a13c995cbb50188f6f91a62a3 100644 (file)
@@ -353,9 +353,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
 }
 
 // ----------------------------------------------------------------------------