fix wxStaticText improperly wrapping text when initial size is fully specified, closes #16278

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@76602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2014-05-24 18:39:56 +00:00
parent 6ebd5eed16
commit 13b55e7796

View File

@@ -94,6 +94,13 @@ bool wxStaticText::Create(wxWindow *parent,
PostCreation(size); PostCreation(size);
#ifndef __WXGTK3__
// GtkLabel does its layout based on its size-request, rather than its
// actual size. The size-request may not always get set, specifically if
// the initial size is fully specified. So make sure it's set here.
gtk_widget_set_size_request(m_widget, m_width, m_height);
#endif
return true; return true;
} }