summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java
diff options
context:
space:
mode:
authorBogdan Gheorghe <gheorghe>2009-05-26 20:13:27 +0000
committerBogdan Gheorghe <gheorghe>2009-05-26 20:13:27 +0000
commit45a6d0022c44f47ecde663b4004cb5c0d76ba9e5 (patch)
tree6691e37ea9db10ec1c0a65af0e99f966206ae318 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java
parent4238ef26e767b06d9ffbdd7f9514f72f6aa07acb (diff)
downloadeclipse.platform.swt-45a6d0022c44f47ecde663b4004cb5c0d76ba9e5.tar.gz
eclipse.platform.swt-45a6d0022c44f47ecde663b4004cb5c0d76ba9e5.tar.xz
eclipse.platform.swt-45a6d0022c44f47ecde663b4004cb5c0d76ba9e5.zip
277268 [Forms] section header labels are cut off on Gtk
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java
index 7247b35b7a..a45ce0acf9 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java
@@ -132,6 +132,7 @@ public Point computeSize (int wHint, int hHint, boolean changed) {
* to calculate its preferred size.
*/
boolean fixWrap = labelHandle != 0 && (style & SWT.WRAP) != 0 && (OS.GTK_WIDGET_FLAGS (labelHandle) & OS.GTK_VISIBLE) != 0;
+ if (fixWrap || frameHandle != 0) forceResize ();
if (fixWrap) {
int /*long*/ labelLayout = OS.gtk_label_get_layout (labelHandle);
int pangoWidth = OS.pango_layout_get_width (labelLayout);