diff options
author | Kevin Barnes <krbarnes> | 2008-04-15 16:26:55 +0000 |
---|---|---|
committer | Kevin Barnes <krbarnes> | 2008-04-15 16:26:55 +0000 |
commit | 3c4a8b62ca1ee7cc85cd47688d169f0a9f19ea1c (patch) | |
tree | 28826919ab8b8ed2afd54c7c38854f498117c649 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java | |
parent | 2c83c1581954298e740de236e5537b6a24b23fe9 (diff) | |
download | eclipse.platform.swt-3c4a8b62ca1ee7cc85cd47688d169f0a9f19ea1c.tar.gz eclipse.platform.swt-3c4a8b62ca1ee7cc85cd47688d169f0a9f19ea1c.tar.xz eclipse.platform.swt-3c4a8b62ca1ee7cc85cd47688d169f0a9f19ea1c.zip |
223015 - Combo height on Linux is too small
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java')
-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 453e1a504f..7c7c6d9e62 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 @@ -1763,7 +1763,9 @@ void setBackgroundColor (GdkColor color) { } int setBounds (int x, int y, int width, int height, boolean move, boolean resize) { - int newHeight = resize ? getTextHeight () : height; + + int newHeight = height; + if (resize) newHeight = Math.max (getTextHeight (), height); return super.setBounds (x, y, width, newHeight, move, resize); } |