]> git.saurik.com Git - wxWidgets.git/blobdiff - src/propgrid/propgrid.cpp
Fix warnings about signed/unsigned comparisons inside wxMax() and friends.
[wxWidgets.git] / src / propgrid / propgrid.cpp
index 7c7788b5a652cb104081cfd40d090242911fc9d4..e89c12abd44aa815993d7ef00b498ab9ab1e21bf 100644 (file)
@@ -4568,6 +4568,11 @@ void wxPropertyGrid::RecalculateVirtualSize( int forceXPos )
     SetScrollbars( wxPG_PIXELS_PER_UNIT, wxPG_PIXELS_PER_UNIT,
                    xAmount, yAmount, xPos, yPos, true );
 
+    // This may be needed in addition to calling SetScrollbars()
+    // when class inherits from wxScrollHelper instead of
+    // actual wxScrolled<T>.
+    AdjustScrollbars();
+
     // Must re-get size now
     GetClientSize(&width,&height);