Various improvements

This commit is contained in:
Ilya Laktyushin
2020-06-19 00:33:54 +03:00
parent 03a84fda99
commit df70d5d718
87 changed files with 7865 additions and 6292 deletions

View File

@@ -523,9 +523,11 @@ open class GridNode: GridNodeScroller, UIScrollViewDelegate {
}
previousSection = section
if let height = item.fillsRowWithHeight {
nextItemOrigin.x = 0.0
itemSize.width = gridLayout.size.width
if let (height, fillWidth) = item.fillsRowWithHeight {
if fillWidth {
nextItemOrigin.x = 0.0
itemSize.width = gridLayout.size.width
}
itemSize.height = height
} else if let fillsRowWithDynamicHeight = item.fillsRowWithDynamicHeight {
let height = fillsRowWithDynamicHeight(gridLayout.size.width)