diff options
author | Dan Gudmundsson <[email protected]> | 2019-02-18 12:41:09 +0100 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2019-02-18 12:41:09 +0100 |
commit | 2174af8288bc5d8c6b7f39daf7a61dcb63a53118 (patch) | |
tree | a813592fdbd18344d92f9ddc0084656905907161 /lib/observer/src/cdv_table_wx.erl | |
parent | d89ac6959f8f5c9f8d4960f84e23e34e9da25323 (diff) | |
parent | 1fc95bdd084d9e43e255a1962dbb562a2e1aa367 (diff) | |
download | otp-2174af8288bc5d8c6b7f39daf7a61dcb63a53118.tar.gz otp-2174af8288bc5d8c6b7f39daf7a61dcb63a53118.tar.bz2 otp-2174af8288bc5d8c6b7f39daf7a61dcb63a53118.zip |
Merge branch 'maint'
* maint:
Add OBSERVER_SCALE environment variable for HiDPI support
Diffstat (limited to 'lib/observer/src/cdv_table_wx.erl')
-rw-r--r-- | lib/observer/src/cdv_table_wx.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/observer/src/cdv_table_wx.erl b/lib/observer/src/cdv_table_wx.erl index 0f28a51017..0cad272262 100644 --- a/lib/observer/src/cdv_table_wx.erl +++ b/lib/observer/src/cdv_table_wx.erl @@ -50,11 +50,12 @@ init([ParentWin, {ColumnSpec,Info,TW}]) -> end, Grid = wxListCtrl:new(ParentWin, [{style, Style}]), Li = wxListItem:new(), + Scale = observer_wx:get_scale(), AddListEntry = fun({Name, Align, DefSize}, Col) -> wxListItem:setText(Li, Name), wxListItem:setAlign(Li, Align), wxListCtrl:insertColumn(Grid, Col, Li), - wxListCtrl:setColumnWidth(Grid, Col, DefSize), + wxListCtrl:setColumnWidth(Grid, Col, DefSize*Scale), Col + 1 end, lists:foldl(AddListEntry, 0, ColumnSpec), |