#155 Add margin to total width in centrate_nodes

This commit is contained in:
Insality 2022-01-27 19:35:29 +02:00
parent f534baf2ee
commit 97e7631d22

View File

@ -76,6 +76,7 @@ function M.centrate_nodes(margin, ...)
node_widths[i] = get_width(node) node_widths[i] = get_width(node)
width = width + node_widths[i] width = width + node_widths[i]
end end
width = width + margin * (count - 1)
-- Posing all elements -- Posing all elements
local pos_x = 0 local pos_x = 0