Voice Chat UI fixes

This commit is contained in:
Ilya Laktyushin
2020-12-06 23:23:36 +04:00
parent afc64e092c
commit 5867099883
3 changed files with 9 additions and 5 deletions

View File

@@ -1013,7 +1013,7 @@ open class ListView: ASDisplayNode, UIScrollViewAccessibilityDelegate, UIGesture
completeHeight = max(completeHeight, self.visibleSize.height + keepMinimalScrollHeightWithTopInset - effectiveInsets.bottom - effectiveInsets.top)
bottomItemEdge = max(bottomItemEdge, topItemEdge + completeHeight)
} else {
effectiveInsets.top = self.visibleSize.height - completeHeight
effectiveInsets.top = max(effectiveInsets.top, self.visibleSize.height - completeHeight)
completeHeight = max(completeHeight, self.visibleSize.height)
bottomItemEdge = max(bottomItemEdge, topItemEdge + completeHeight)
}