]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed the bug which resulted in not showing the grid withotu scrollbars at all
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 12 Apr 2002 22:00:38 +0000 (22:00 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 12 Apr 2002 22:00:38 +0000 (22:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/grid.cpp

index 101e6cf372d6589a314e8231ba9c0eb3e98de8c8..13ad0909b87c4f205cc2983472caeb02237f1b02 100644 (file)
@@ -3879,6 +3879,10 @@ void wxGrid::CalcDimensions()
     SetScrollbars( GRID_SCROLL_LINE_X, GRID_SCROLL_LINE_Y,
                    GetScrollX(w), GetScrollY(h), x, y,
                    GetBatchCount() != 0);
+
+    // if our OnSize() hadn't been called (it would if we have scrollbars), we
+    // still must reposition the children
+    CalcWindowSizes();
 }