Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Singer2019-04-18 11:51:25 +0000
committerNiraj Modi2019-04-22 06:04:49 +0000
commit274b84bf859590c38c0f1ac6dc1e5e40d088d3ce (patch)
tree2f1d862f538923441a9ce967eb46c88e52667af4
parent02a6663a7669d22351c4118f37e8747ecf1d4b11 (diff)
downloadeclipse.platform.swt-274b84bf859590c38c0f1ac6dc1e5e40d088d3ce.tar.gz
eclipse.platform.swt-274b84bf859590c38c0f1ac6dc1e5e40d088d3ce.tar.xz
eclipse.platform.swt-274b84bf859590c38c0f1ac6dc1e5e40d088d3ce.zip
Bug 536021 - [Win32] Table: right-aligned column header with own background color lacks margin
Change-Id: Ieecfc0d5fa13bfbd99e87cc7616e5cbf97ce285c Signed-off-by: Thomas Singer <ts-swt@syntevo.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
index 9418c1352a..93d32c4004 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
@@ -7002,7 +7002,7 @@ LRESULT wmNotifyHeader (NMHDR hdr, long /*int*/ wParam, long /*int*/ lParam) {
RECT textRect = new RECT();
textRect.left = x;
textRect.top = rects[i].top;
- textRect.right = rects[i].right;
+ textRect.right = rects[i].right - (x - rects[i].left);
textRect.bottom = rects[i].bottom;
OS.DrawText (nmcd.hdc, buffer, buffer.length, textRect, flags);
}

Back to the top