AutoDirectionLayout: consider columnSpacing

For summedImplicitWidth calculation.
This commit is contained in:
miruka 2020-07-12 13:10:19 -04:00
parent 3c7b78d4ca
commit 370418bcf5

View File

@ -9,7 +9,9 @@ HGridLayout {
for (let i = 0; i < visibleChildren.length; i++) { for (let i = 0; i < visibleChildren.length; i++) {
const item = visibleChildren[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 return sum