diff options
author | Silenio Quarti <silenio> | 2004-02-10 22:22:31 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2004-02-10 22:22:31 +0000 |
commit | 1d1a94ed5bc659dfa2f338a8e987305c998987bb (patch) | |
tree | 030d619e45b2d865942ab72211900e361ba2cbb0 | |
parent | f398245478436bc7d41bf8f754f2b02dd9d30fff (diff) | |
download | eclipse.platform.swt-1d1a94ed5bc659dfa2f338a8e987305c998987bb.tar.gz eclipse.platform.swt-1d1a94ed5bc659dfa2f338a8e987305c998987bb.tar.xz eclipse.platform.swt-1d1a94ed5bc659dfa2f338a8e987305c998987bb.zip |
38564
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Button.java | 4 |
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]); } } |