]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/grid.cpp
fixed outdated filenames
[wxWidgets.git] / 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();
 }