projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[ 1509599 ] 'Split pickers page in widgets sample' with more icons and rebaking.
[wxWidgets.git]
/
src
/
gtk
/
stattext.cpp
diff --git
a/src/gtk/stattext.cpp
b/src/gtk/stattext.cpp
index 2641ea02f33db4b7a9c41169d89db99d8dc0c86d..c8ab59de09391649e8177ccb541f4c105844a3d8 100644
(file)
--- a/
src/gtk/stattext.cpp
+++ b/
src/gtk/stattext.cpp
@@
-154,7
+154,8
@@
wxSize wxStaticText::DoGetBestSize() const
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)