mirror of
https://github.com/Insality/druid
synced 2025-06-27 10:27:48 +02:00
#155 Add margin to total width in centrate_nodes
This commit is contained in:
parent
f534baf2ee
commit
97e7631d22
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user