From: Vadim Zeitlin Date: Fri, 12 Apr 2002 22:00:38 +0000 (+0000) Subject: fixed the bug which resulted in not showing the grid withotu scrollbars at all X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1231429104e3d15fef1429f8d38bd97873559aa0?ds=inline fixed the bug which resulted in not showing the grid withotu scrollbars at all git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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(); }