X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/94af7d45eff65baa84c142b8238267217ba4617d..94c162795e6ebff164bcfc7bb9aa0138dd83b194:/src/generic/grid.cpp diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 101e6cf372..13ad0909b8 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -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(); }