AutoDirectionLayout: consider columnSpacing
For summedImplicitWidth calculation.
This commit is contained in:
parent
3c7b78d4ca
commit
370418bcf5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user