diff options
author | Steve Northover | 2007-05-17 18:24:41 +0000 |
---|---|---|
committer | Steve Northover | 2007-05-17 18:24:41 +0000 |
commit | a2c619eb4c6475026b393a71e684780ac6c1ea72 (patch) | |
tree | 5b4a539b47a3cb95aad9741757eff8200090a7b3 | |
parent | a52d83b3067cf37f87f479eb78a07f1ae87135dd (diff) | |
download | eclipse.platform.swt-a2c619eb4c6475026b393a71e684780ac6c1ea72.tar.gz eclipse.platform.swt-a2c619eb4c6475026b393a71e684780ac6c1ea72.tar.xz eclipse.platform.swt-a2c619eb4c6475026b393a71e684780ac6c1ea72.zip |
187560 READ_ONLY combos not tall enough
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java index e25afa1583..d947c92716 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java @@ -943,7 +943,9 @@ String getText (int start, int stop) { */ public int getTextHeight () { checkWidget(); - return fontHeight (getFontDescription (), entryHandle != 0 ? entryHandle : handle) + 8; + GtkRequisition requisition = new GtkRequisition (); + gtk_widget_size_request (handle, requisition); + return OS.GTK_WIDGET_REQUISITION_HEIGHT (handle); } /** |