From 97e7631d22d74264b26f84bc1168693a1892e9a6 Mon Sep 17 00:00:00 2001 From: Insality Date: Thu, 27 Jan 2022 19:35:29 +0200 Subject: [PATCH] #155 Add margin to total width in centrate_nodes --- druid/helper.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/druid/helper.lua b/druid/helper.lua index cbd5332..38e2b36 100644 --- a/druid/helper.lua +++ b/druid/helper.lua @@ -76,6 +76,7 @@ function M.centrate_nodes(margin, ...) node_widths[i] = get_width(node) width = width + node_widths[i] end + width = width + margin * (count - 1) -- Posing all elements local pos_x = 0