]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix for incomplete initial display sometimes with wxMSW
authorMichael Bedward <mbedward@ozemail.com.au>
Mon, 25 Oct 1999 13:17:36 +0000 (13:17 +0000)
committerMichael Bedward <mbedward@ozemail.com.au>
Mon, 25 Oct 1999 13:17:36 +0000 (13:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/grid.cpp

index 18c1acac6c43235bd6011d82388edb1b05a17820..01af2f0d9eb4795cf868264c2bdc4a5f82e6686b 100644 (file)
@@ -816,9 +816,10 @@ void wxGrid::Init()
     m_cellEditCtrlEnabled = TRUE;
     m_editCtrlType = wxGRID_TEXTCTRL;    
     
-    // Not really needed here, it gets called by OnSize()
+    // This is here in case OnSize does not get called when the grid is
+    // displayed
     //
-    // CalcDimensions();
+    CalcDimensions();
 }