treeview: scale fallback sizes as pointed out by @Guldoman
This commit is contained in:
parent
0629542cf7
commit
e0859e1e39
|
@ -855,9 +855,9 @@ config.plugins.treeview.config_spec = {
|
||||||
path = "size",
|
path = "size",
|
||||||
type = "number",
|
type = "number",
|
||||||
default = toolbar_view and math.ceil(toolbar_view:get_min_width() / SCALE)
|
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
|
min = toolbar_view and toolbar_view:get_min_width() / SCALE
|
||||||
or 200,
|
or 200 * SCALE,
|
||||||
get_value = function(value)
|
get_value = function(value)
|
||||||
return value / SCALE
|
return value / SCALE
|
||||||
end,
|
end,
|
||||||
|
@ -866,7 +866,7 @@ config.plugins.treeview.config_spec = {
|
||||||
end,
|
end,
|
||||||
on_apply = function(value)
|
on_apply = function(value)
|
||||||
view:set_target_size("x", math.max(
|
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
|
end
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue