]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix layout of wxStaticText, and possibly other controls.
authorPaul Cornett <paulcor@bullseye.com>
Mon, 4 Jun 2012 17:36:51 +0000 (17:36 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Mon, 4 Jun 2012 17:36:51 +0000 (17:36 +0000)
GtkLabel perversely does not use its actual size to do layout, but will use its
size request. So restore calling gtk_widget_set_size_request() for all widgets,
which was removed in r71465. See #14374

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/window.cpp

index 2b1d991e42547723a613181dbf7f39e757b5ccbd..41f3947cfa85c564c264f5d6c207b4ad1644b53b 100644 (file)
@@ -2567,11 +2567,10 @@ static gboolean queue_resize(void*)
 
 void wxWindowGTK::DoMoveWindow(int x, int y, int width, int height)
 {
+    gtk_widget_set_size_request(m_widget, width, height);
     GtkWidget* parent = gtk_widget_get_parent(m_widget);
     if (WX_IS_PIZZA(parent))
         WX_PIZZA(parent)->move(m_widget, x, y, width, height);
-    else
-        gtk_widget_set_size_request(m_widget, width, height);
 
     // With GTK3, gtk_widget_queue_resize() is ignored while a size-allocate
     // is in progress. This situation is common in wxWidgets, since