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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user