]> git.saurik.com Git - wxWidgets.git/commitdiff
Added call to CalcDimensions() at end of wxGrid::Init so that you can,
authorMichael Bedward <mbedward@ozemail.com.au>
Fri, 25 Feb 2000 06:56:41 +0000 (06:56 +0000)
committerMichael Bedward <mbedward@ozemail.com.au>
Fri, 25 Feb 2000 06:56:41 +0000 (06:56 +0000)
for example, put a grid in a dialog, size it and then call CreateGrid
at some later stage.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6278 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/grid.cpp

index 831c669c75c4e070f172ec6b32072b532d2ad8f2..15044b39d82cf079c463e1d7e2437c240e796df4 100644 (file)
@@ -2943,6 +2943,8 @@ void wxGrid::Init()
 
     m_inOnKeyDown = FALSE;
     m_batchCount = 0;
+
+    CalcDimensions();
 }
 
 // ----------------------------------------------------------------------------