GTK issue where it sometimes wrapps the text needlessly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39636
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
gtk_label_set_line_wrap( GTK_LABEL(m_widget), TRUE );
gtk_label_set_line_wrap( GTK_LABEL(m_widget), TRUE );
- return wxSize (req.width, req.height);
+ // Adding 1 to width to workaround GTK sometimes wrapping the text needlessly
+ return wxSize (req.width+1, req.height);
}
bool wxStaticText::SetForegroundColour(const wxColour& colour)
}
bool wxStaticText::SetForegroundColour(const wxColour& colour)