treeview: scale fallback sizes as pointed out by @Guldoman

This commit is contained in:
jgmdev 2022-06-22 01:35:10 -04:00
parent 0629542cf7
commit e0859e1e39
1 changed files with 3 additions and 3 deletions

View File

@ -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
},