Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Commit

Permalink
avoid invalid frame dimension warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
technicat committed Sep 22, 2023
1 parent 91ac01f commit 00a3f2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/QGrid/QGrid.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public struct QGrid<Data, Content>: 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() }
}
Expand Down

0 comments on commit 00a3f2d

Please sign in to comment.