mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Various improvements
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user