From e0859e1e393dc1512413fba21dc3bb685f3b5099 Mon Sep 17 00:00:00 2001 From: jgmdev Date: Wed, 22 Jun 2022 01:35:10 -0400 Subject: [PATCH] treeview: scale fallback sizes as pointed out by @Guldoman --- data/plugins/treeview.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/plugins/treeview.lua b/data/plugins/treeview.lua index 133fe9a..9dad1eb 100644 --- a/data/plugins/treeview.lua +++ b/data/plugins/treeview.lua @@ -855,9 +855,9 @@ config.plugins.treeview.config_spec = { path = "size", type = "number", default = toolbar_view and math.ceil(toolbar_view:get_min_width() / SCALE) - or 200, + or 200 * SCALE, min = toolbar_view and toolbar_view:get_min_width() / SCALE - or 200, + or 200 * SCALE, get_value = function(value) return value / SCALE end, @@ -866,7 +866,7 @@ config.plugins.treeview.config_spec = { end, on_apply = function(value) view:set_target_size("x", math.max( - value, toolbar_view and toolbar_view:get_min_width() or 200 + value, toolbar_view and toolbar_view:get_min_width() or 200 * SCALE )) end },