]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/radiobox.cpp
1. status bar can now be positioned on top (and anywhere, in fact)
[wxWidgets.git] / src / gtk / radiobox.cpp
index a65b07843534e7db35a3a5609740b13488d75c87..10044f42a13f5ac80c9323373b1ce3941b40ba2f 100644 (file)
@@ -192,6 +192,12 @@ bool wxRadioBox::Create( wxWindow *parent, wxWindowID id, const wxString& title,
 
     wxSize ls = LayoutItems();
 
+    GtkRequisition req;
+    req.width = 2;
+    req.height = 2;
+    (* GTK_WIDGET_CLASS( GTK_OBJECT(m_widget)->klass )->size_request ) (m_widget, &req );
+    if (req.width > ls.x) ls.x = req.width;
+    
     wxSize newSize = size;
     if (newSize.x == -1) newSize.x = ls.x;
     if (newSize.y == -1) newSize.y = ls.y;