summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVeronika Irvine <veronika>2004-12-06 16:46:42 +0000
committerVeronika Irvine <veronika>2004-12-06 16:46:42 +0000
commitb36771e33c8b3ae61bfb302294dbe921cbb1ae98 (patch)
tree5a24fba7cf6ab49046cac39245aa2bbdf730cd8e
parentce197d7cdba08fc3f97648408c1b1c9bdbdd12c5 (diff)
downloadeclipse.platform.swt-b36771e33c8b3ae61bfb302294dbe921cbb1ae98.tar.gz
eclipse.platform.swt-b36771e33c8b3ae61bfb302294dbe921cbb1ae98.tar.xz
eclipse.platform.swt-b36771e33c8b3ae61bfb302294dbe921cbb1ae98.zip
bug 80120 top right control overlapping border
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java
index 5edb21e253..cbf7602758 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java
@@ -2573,6 +2573,7 @@ void setButtonBounds() {
switch (topRightAlignment) {
case SWT.FILL: {
int rightEdge = size.x - borderRight - 3 - maxRect.width - minRect.width;
+ if (!simple) rightEdge -= 2;
if (single) {
if (items.length == 0 || selectedIndex == -1) {
topRightRect.x = borderLeft + 3;
@@ -2603,6 +2604,7 @@ void setButtonBounds() {
case SWT.RIGHT: {
Point topRightSize = topRight.computeSize(SWT.DEFAULT, tabHeight, false);
int rightEdge = size.x - borderRight - 3 - maxRect.width - minRect.width;
+ if (!simple) rightEdge -= 2;
topRightRect.x = rightEdge - topRightSize.x;
topRightRect.width = topRightSize.x;
topRightRect.y = onBottom ? size.y - borderBottom - tabHeight: borderTop + 1;