diff options
author | Silenio Quarti <silenio> | 2005-10-20 16:12:55 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2005-10-20 16:12:55 +0000 |
commit | 4d7280c16129fa62812f37b106a5b714e44bee67 (patch) | |
tree | 12b77fc5b002ca2758750fdfe31148a6c7759bfa | |
parent | ccafa071cbf3a668969c24a101b6b5289ef71fa7 (diff) | |
download | eclipse.platform.swt-4d7280c16129fa62812f37b106a5b714e44bee67.tar.gz eclipse.platform.swt-4d7280c16129fa62812f37b106a5b714e44bee67.tar.xz eclipse.platform.swt-4d7280c16129fa62812f37b106a5b714e44bee67.zip |
113100 - Button size test failures
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Widget.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Widget.java b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Widget.java index 750a4bb161..54f3a99f8f 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Widget.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Widget.java @@ -785,7 +785,10 @@ Point getControlSize (int control) { if (OS.HIVIEW) { CGRect rect = new CGRect (); OS.HIViewGetFrame (control, rect); - return new Point ((int) rect.width, (int) rect.height); + Rect inset = getInset (); + int width = (int) rect.width + inset.left + inset.right; + int height = (int) rect.height + inset.top + inset.bottom; + return new Point (width, height); } Rect rect = new Rect (); OS.GetControlBounds (control, rect); |