diff options
Diffstat (limited to 'tableview.go')
-rw-r--r-- | tableview.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tableview.go b/tableview.go index 23f68b2c..6d3cbfe8 100644 --- a/tableview.go +++ b/tableview.go @@ -2259,7 +2259,7 @@ func (tv *TableView) WndProc(hwnd win.HWND, msg uint32, wp, lp uintptr) uintptr } func (tv *TableView) updateLVSizes() { - cb := tv.ClientBounds() + cb := tv.ClientBoundsPixels() var width int for i := tv.columns.Len() - 1; i >= 0; i-- { @@ -2268,6 +2268,8 @@ func (tv *TableView) updateLVSizes() { } } + width = tv.IntFrom96DPI(width) + win.MoveWindow(tv.hwndNormalLV, int32(width), 0, int32(cb.Width-width), int32(cb.Height), true) var sbh int |