mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
Fix gift options content height
This commit is contained in:
@@ -944,8 +944,9 @@ final class GiftOptionsScreenComponent: Component {
|
||||
self.starsItemsOrigin = contentHeight
|
||||
|
||||
let starsOptionSize = CGSize(width: optionWidth, height: 154.0)
|
||||
contentHeight += ceil(CGFloat(starGifts.count) / 3.0) * starsOptionSize.height
|
||||
contentHeight += 66.0
|
||||
let optionSpacing: CGFloat = 10.0
|
||||
contentHeight += ceil(CGFloat(starGifts.count) / 3.0) * (starsOptionSize.height + optionSpacing)
|
||||
contentHeight += -optionSpacing + 66.0
|
||||
}
|
||||
|
||||
contentHeight += bottomContentInset
|
||||
|
||||
Reference in New Issue
Block a user