]> git.saurik.com Git - wxWidgets.git/commitdiff
Reduced spacing in tree ctrl.
authorRobert Roebling <robert@roebling.de>
Wed, 22 Dec 1999 17:22:54 +0000 (17:22 +0000)
committerRobert Roebling <robert@roebling.de>
Wed, 22 Dec 1999 17:22:54 +0000 (17:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/treectrl.cpp

index bb496e4ee9961fdc8e971b973d47427c92c5cd30..151c9b78d3a0646b8c9cb06430dc9862595da9aa 100644 (file)
@@ -1422,7 +1422,7 @@ void wxTreeCtrl::SetImageList(wxImageList *imageList)
       if(height > m_lineHeight) m_lineHeight = height;
    }
 
-   if (m_lineHeight<40) m_lineHeight+=4; // at least 4 pixels (odd such that a line can be drawn in between)
+   if (m_lineHeight<40) m_lineHeight+=2; // at least 4 pixels (odd such that a line can be drawn in between)
    else m_lineHeight+=m_lineHeight/10;   // otherwise 10% extra spacing
 
 #endif
@@ -2086,7 +2086,7 @@ void wxTreeCtrl::CalculateSize( wxGenericTreeItem *item, wxDC &dc )
 
     int total_h = (image_h > text_h) ? image_h : text_h;
 
-    if (total_h<40) total_h+=4; // at least 4 pixels
+    if (total_h<40) total_h+=2; // at least 4 pixels
     else total_h+=total_h/10;   // otherwise 10% extra spacing
 
     item->SetHeight(total_h);