]> git.saurik.com Git - wxWidgets.git/commitdiff
Small correction to radio box look.
authorRobert Roebling <robert@roebling.de>
Sun, 22 Feb 2004 17:28:25 +0000 (17:28 +0000)
committerRobert Roebling <robert@roebling.de>
Sun, 22 Feb 2004 17:28:25 +0000 (17:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25918 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/radiobox.cpp
src/gtk1/radiobox.cpp

index d4240061a6ff0ee8fd16199ec8d7ec38e2fe3b58..eb6dda8b25fcf31d5e899fe626c40c351697c58f 100644 (file)
@@ -318,7 +318,7 @@ wxSize wxRadioBox::LayoutItems()
         num_of_rows = m_majorDim;
     }
     
-    int lineheight = GetCharHeight();
+    int lineheight = GetCharHeight()+2;
     
     if ( HasFlag(wxRA_SPECIFY_COLS) ||
          (HasFlag(wxRA_SPECIFY_ROWS) && (num_of_cols > 1)) )
@@ -339,7 +339,7 @@ wxSize wxRadioBox::LayoutItems()
                 req.height = 2;
                 (* GTK_WIDGET_CLASS( GTK_OBJECT_GET_CLASS(button) )->size_request )
                       (button, &req );
-
+                      
                 if (req.width > max_len) max_len = req.width;
 
                 gtk_pizza_move( GTK_PIZZA(m_parent->m_wxwindow), button, m_x+x, m_y+y );
index d4240061a6ff0ee8fd16199ec8d7ec38e2fe3b58..eb6dda8b25fcf31d5e899fe626c40c351697c58f 100644 (file)
@@ -318,7 +318,7 @@ wxSize wxRadioBox::LayoutItems()
         num_of_rows = m_majorDim;
     }
     
-    int lineheight = GetCharHeight();
+    int lineheight = GetCharHeight()+2;
     
     if ( HasFlag(wxRA_SPECIFY_COLS) ||
          (HasFlag(wxRA_SPECIFY_ROWS) && (num_of_cols > 1)) )
@@ -339,7 +339,7 @@ wxSize wxRadioBox::LayoutItems()
                 req.height = 2;
                 (* GTK_WIDGET_CLASS( GTK_OBJECT_GET_CLASS(button) )->size_request )
                       (button, &req );
-
+                      
                 if (req.width > max_len) max_len = req.width;
 
                 gtk_pizza_move( GTK_PIZZA(m_parent->m_wxwindow), button, m_x+x, m_y+y );