mirror of
https://github.com/Insality/druid.git
synced 2025-09-27 10:02:18 +02:00
#155 Add margin to total width in centrate_nodes
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user