]> git.saurik.com Git - wxWidgets.git/commitdiff
Call wxScrollHelper::AdjustScrollbars() to fix scroll bar setup that broke after...
authorJaakko Salli <jaakko.salli@dnainternet.net>
Mon, 18 Oct 2010 13:55:40 +0000 (13:55 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Mon, 18 Oct 2010 13:55:40 +0000 (13:55 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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);