summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/emulated
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2002-09-04 15:48:22 +0000
committerSilenio Quarti <silenio>2002-09-04 15:48:22 +0000
commit7d8bece1e976c14a89c6624c12e880f9988f6505 (patch)
tree367884c9a0b9f52e8773c87b83db9f64750d38cc /bundles/org.eclipse.swt/Eclipse SWT/emulated
parent22c591326ef2c5b6802db3ec561324050f4725bb (diff)
downloadeclipse.platform.swt-7d8bece1e976c14a89c6624c12e880f9988f6505.tar.gz
eclipse.platform.swt-7d8bece1e976c14a89c6624c12e880f9988f6505.tar.xz
eclipse.platform.swt-7d8bece1e976c14a89c6624c12e880f9988f6505.zip
*** empty log message ***
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/emulated')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/emulated/coolbar/org/eclipse/swt/widgets/CoolBar.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/emulated/coolbar/org/eclipse/swt/widgets/CoolBar.java b/bundles/org.eclipse.swt/Eclipse SWT/emulated/coolbar/org/eclipse/swt/widgets/CoolBar.java
index 200c0d017c..fcf3d38ea2 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/emulated/coolbar/org/eclipse/swt/widgets/CoolBar.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/emulated/coolbar/org/eclipse/swt/widgets/CoolBar.java
@@ -124,10 +124,8 @@ public Point computeSize (int wHint, int hHint, boolean changed) {
if (height == 0) height = DEFAULT_HEIGHT;
if (wHint != SWT.DEFAULT) width = wHint;
if (hHint != SWT.DEFAULT) height = hHint;
- int border = getBorderWidth();
- width += 2 * border;
- height += 2 * border;
- return new Point(width, height);
+ Rectangle trim = computeTrim(0, 0, width, height);
+ return new Point(trim.width, trim.height);
}
CoolItem getGrabbedItem(int x, int y) {
for (int row = 0; row < items.length; row++) {