summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2004-02-10 22:22:31 +0000
committerSilenio Quarti <silenio>2004-02-10 22:22:31 +0000
commit1d1a94ed5bc659dfa2f338a8e987305c998987bb (patch)
tree030d619e45b2d865942ab72211900e361ba2cbb0 /bundles/org.eclipse.swt/Eclipse SWT
parentf398245478436bc7d41bf8f754f2b02dd9d30fff (diff)
downloadeclipse.platform.swt-1d1a94ed5bc659dfa2f338a8e987305c998987bb.tar.gz
eclipse.platform.swt-1d1a94ed5bc659dfa2f338a8e987305c998987bb.tar.xz
eclipse.platform.swt-1d1a94ed5bc659dfa2f338a8e987305c998987bb.zip
38564
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Button.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Button.java b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Button.java
index 0ecbcecc89..a36ee8f56e 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Button.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Button.java
@@ -196,7 +196,9 @@ public Point computeSize (int wHint, int hHint, boolean changed) {
height += 10;
} else {
width += 28;
- height += 8;
+ int [] outMetric = new int [1];
+ OS.GetThemeMetric (OS.kThemeMetricPushButtonHeight, outMetric);
+ height = Math.max (height, outMetric [0]);
}
}