]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/grid.cpp
New Refresh()/Update() behaviour. As expected, scrolling
[wxWidgets.git] / src / generic / grid.cpp
index 6387d6e676684650a130ef2c6e99cc74e7980b2a..fe5b45ebedb619593238e8b56aed792ba7044207 100644 (file)
@@ -3819,7 +3819,7 @@ void wxGrid::Init()
     m_batchCount = 0;
 
     m_extraWidth =
-    m_extraHeight = 50;
+    m_extraHeight = 0;
 }
 
 // ----------------------------------------------------------------------------
@@ -3904,9 +3904,9 @@ void wxGrid::CalcDimensions()
     int cw, ch;
     GetClientSize( &cw, &ch );
 
-    if ( m_colLabelWin->IsShown() )
-        cw -= m_rowLabelWidth;
     if ( m_rowLabelWin->IsShown() )
+        cw -= m_rowLabelWidth;
+    if ( m_colLabelWin->IsShown() )
         ch -= m_colLabelHeight;
 
     // grid total size