From 370418bcf5f5f32d56609a9ff5f57bb240ccfa45 Mon Sep 17 00:00:00 2001 From: miruka Date: Sun, 12 Jul 2020 13:10:19 -0400 Subject: [PATCH] AutoDirectionLayout: consider columnSpacing For summedImplicitWidth calculation. --- src/gui/Base/AutoDirectionLayout.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/Base/AutoDirectionLayout.qml b/src/gui/Base/AutoDirectionLayout.qml index bc3eb140..d14c911b 100644 --- a/src/gui/Base/AutoDirectionLayout.qml +++ b/src/gui/Base/AutoDirectionLayout.qml @@ -9,7 +9,9 @@ HGridLayout { for (let i = 0; i < visibleChildren.length; i++) { const item = visibleChildren[i] - if (item) sum += item.width > 0 ? item.implicitWidth : 0 + + if (item) + sum += (item.width > 0 ? item.implicitWidth : 0) +columnSpacing } return sum