mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Add extra content height to make settings always scrollable on large phones
This commit is contained in:
parent
a0e2a91e3a
commit
5b5cb00fa7
1 changed files with 3 additions and 0 deletions
|
|
@ -5140,6 +5140,9 @@ private final class PeerInfoScreenNode: ViewControllerTracingNode, UIScrollViewD
|
|||
})
|
||||
}
|
||||
|
||||
if self.isSettings {
|
||||
contentHeight = max(contentHeight, layout.size.height + 140.0 + (self.headerNode.twoLineInfo ? 17.0 : 0.0) - layout.intrinsicInsets.bottom)
|
||||
}
|
||||
self.scrollNode.view.contentSize = CGSize(width: layout.size.width, height: contentHeight)
|
||||
if self.isSettings {
|
||||
self.scrollNode.view.contentInset = UIEdgeInsets(top: 0.0, left: 0.0, bottom: layout.intrinsicInsets.bottom, right: 0.0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue