Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Northover2007-05-17 18:24:41 +0000
committerSteve Northover2007-05-17 18:24:41 +0000
commita2c619eb4c6475026b393a71e684780ac6c1ea72 (patch)
tree5b4a539b47a3cb95aad9741757eff8200090a7b3
parenta52d83b3067cf37f87f479eb78a07f1ae87135dd (diff)
downloadeclipse.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.java4
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);
}
/**

Back to the top