diff options
author | Thomas Singer | 2019-04-18 11:51:25 +0000 |
---|---|---|
committer | Niraj Modi | 2019-04-22 06:04:49 +0000 |
commit | 274b84bf859590c38c0f1ac6dc1e5e40d088d3ce (patch) | |
tree | 2f1d862f538923441a9ce967eb46c88e52667af4 | |
parent | 02a6663a7669d22351c4118f37e8747ecf1d4b11 (diff) | |
download | eclipse.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.java | 2 |
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); } |