diff options
author | Alexander Neumann <alexander.neumann@picos-software.com> | 2019-05-08 10:06:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-08 10:06:45 +0200 |
commit | e0106a411386a1e787ab42d40126a55ce5793fd3 (patch) | |
tree | b223f17320c009a8c0e438d338698642eccb1302 | |
parent | Widget[Base]: Add *Pixel variants of MinSize, MaxSize and SetMinMaxSize (diff) | |
parent | tableviewcolumn: do DPI conversion in create() too (diff) | |
download | wireguard-windows-e0106a411386a1e787ab42d40126a55ce5793fd3.tar.xz wireguard-windows-e0106a411386a1e787ab42d40126a55ce5793fd3.zip |
Merge pull request #510 from zx2c4-forks/jd/forgottableviewcolumn
tableviewcolumn: do DPI conversion in create() too
-rw-r--r-- | tableviewcolumn.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tableviewcolumn.go b/tableviewcolumn.go index 8e902d20..027a2652 100644 --- a/tableviewcolumn.go +++ b/tableviewcolumn.go @@ -380,6 +380,7 @@ func (tvc *TableViewColumn) create() error { } else { lvc.Cx = 100 } + lvc.Cx = int32(tvc.tv.IntFrom96DPI(int(lvc.Cx))) switch tvc.alignment { case AlignCenter: |