Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Gayed2001-09-10 15:04:46 +0000
committerGrant Gayed2001-09-10 15:04:46 +0000
commit87fa603ddc95eb2209e0c9581e5e612d390492aa (patch)
treea6b8e47eb9f6a868a85be1fb29e8a58447bb3040 /bundles
parentde766517aea46467a3b5dc7fa84a60cbc4005f7a (diff)
downloadeclipse.platform.swt-87fa603ddc95eb2209e0c9581e5e612d390492aa.tar.gz
eclipse.platform.swt-87fa603ddc95eb2209e0c9581e5e612d390492aa.tar.xz
eclipse.platform.swt-87fa603ddc95eb2209e0c9581e5e612d390492aa.zip
added borderWidth to computeTrim
Diffstat (limited to 'bundles')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Group.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Group.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Group.java
index 202dd480a0..c571d5a438 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Group.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Group.java
@@ -90,10 +90,11 @@ public Rectangle computeTrim (int x, int y, int width, int height) {
int thickness = argList [5];
int marginWidth = argList [7];
int marginHeight = argList [9];
- trimX = x - marginWidth + thickness;
- trimY = y - marginHeight + thickness;
- trimWidth = width + ((marginWidth + thickness) * 2);
- trimHeight = height + ((marginHeight + thickness) * 2);
+ int borderWidth = getBorderWidth();
+ trimX = x - marginWidth + thickness - 2*borderWidth;
+ trimY = y - marginHeight + thickness - 2*borderWidth;
+ trimWidth = width + ((marginWidth + thickness + borderWidth) * 2);
+ trimHeight = height + ((marginHeight + thickness + borderWidth) * 2);
if (OS.XtIsManaged (labelHandle)) {
int [] argList2 = {OS.XmNy, 0, OS.XmNheight, 0};
OS.XtGetValues (labelHandle, argList2, argList2.length / 2);

Back to the top