diff options
author | 2019-05-07 21:52:58 +0200 | |
---|---|---|
committer | 2019-05-07 22:18:49 +0200 | |
commit | f3d231d34cd4bde4f2bc8841a8a08028c714ba3a (patch) | |
tree | b223f17320c009a8c0e438d338698642eccb1302 | |
parent | Widget[Base]: Add *Pixel variants of MinSize, MaxSize and SetMinMaxSize (diff) | |
download | wireguard-windows-f3d231d34cd4bde4f2bc8841a8a08028c714ba3a.tar.xz wireguard-windows-f3d231d34cd4bde4f2bc8841a8a08028c714ba3a.zip |
tableviewcolumn: do DPI conversion in create() too
You remembered the update()->getLVCOLUMN() path, but forgot about the
create() path, so this fixes that oversight.
-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: |