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