mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-15 21:45:19 +00:00
Merge commit 'e458be1a7b3c6785057ac9dfd4ea6978b744e9de'
This commit is contained in:
commit
b92cf5b0a8
@ -497,6 +497,9 @@ open class GridNode: GridNodeScroller, UIScrollViewDelegate {
|
||||
var nextItemOrigin = CGPoint(x: initialSpacing + itemInsets.left, y: 0.0)
|
||||
var index = 0
|
||||
var previousSection: GridSection?
|
||||
|
||||
var previousFillsRow = false
|
||||
|
||||
for item in self.items {
|
||||
var itemSize = defaultItemSize
|
||||
|
||||
@ -508,6 +511,12 @@ open class GridNode: GridNodeScroller, UIScrollViewDelegate {
|
||||
keepSection = false
|
||||
}
|
||||
|
||||
|
||||
if !previousFillsRow && item.fillsRowWithDynamicHeight != nil {
|
||||
keepSection = false
|
||||
}
|
||||
previousFillsRow = item.fillsRowWithDynamicHeight != nil
|
||||
|
||||
if !keepSection {
|
||||
if incrementedCurrentRow {
|
||||
nextItemOrigin.x = initialSpacing + itemInsets.left
|
||||
|
Loading…
x
Reference in New Issue
Block a user