diff --git a/Sources/QGrid/QGrid.swift b/Sources/QGrid/QGrid.swift index 457a6e9..88bf5be 100644 --- a/Sources/QGrid/QGrid.swift +++ b/Sources/QGrid/QGrid.swift @@ -127,7 +127,7 @@ public struct QGrid: View ForEach((0..<(isLastRow ? data.count % cols : cols)) .map { QGridIndex(id: $0) }) { column in self.content(self.data[index + column.id]) - .frame(width: self.contentWidthFor(geometry)) + .frame(width: abs(self.contentWidthFor(geometry))) } if isLastRow { Spacer() } }