Skip to content

Commit

Permalink
Fix VStack line spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
tevelee committed Aug 14, 2024
1 parent e19b92c commit 8fec679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Flow/Internal/Layout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ struct FlowLayout: Sendable {
var size = lines
.map(\.size)
.reduce(.zero, breadth: max, depth: +)
size[.vertical] += lines.sum(of: \.leadingSpace)
size[axis] += lines.sum(of: \.leadingSpace)
return CGSize(size: size, axis: axis)
}

Expand Down

0 comments on commit 8fec679

Please sign in to comment.