fix wxStaticText improperly wrapping text when initial size is fully specified, closes #16278
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
d2d7a07b7a
commit
4b6c6a2fbd
@ -94,6 +94,13 @@ bool wxStaticText::Create(wxWindow *parent,
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user