mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Web app improvements
This commit is contained in:
@@ -77,6 +77,8 @@ public final class NavigationContainer: ASDisplayNode, ASGestureRecognizerDelega
|
||||
public private(set) var controllers: [ViewController] = []
|
||||
private var state: State = State(layout: nil, canBeClosed: nil, top: nil, transition: nil, pending: nil)
|
||||
|
||||
weak var minimizedContainer: MinimizedContainer?
|
||||
|
||||
private var ignoreInputHeight: Bool = false
|
||||
|
||||
public private(set) var isReady: Bool = false
|
||||
@@ -235,6 +237,13 @@ public final class NavigationContainer: ASDisplayNode, ASGestureRecognizerDelega
|
||||
let topNode = topController.displayNode
|
||||
var bottomControllerLayout = layout
|
||||
if bottomController.view.disableAutomaticKeyboardHandling.isEmpty {
|
||||
if let minimizedContainer = self.minimizedContainer, (bottomControllerLayout.inputHeight ?? 0.0) > 0.0 {
|
||||
var updatedSize = bottomControllerLayout.size
|
||||
var updatedIntrinsicInsets = bottomControllerLayout.intrinsicInsets
|
||||
updatedSize.height -= minimizedContainer.collapsedHeight(layout: layout)
|
||||
updatedIntrinsicInsets.bottom = 0.0
|
||||
bottomControllerLayout = bottomControllerLayout.withUpdatedSize(updatedSize).withUpdatedIntrinsicInsets(updatedIntrinsicInsets)
|
||||
}
|
||||
bottomControllerLayout = bottomControllerLayout.withUpdatedInputHeight(nil)
|
||||
}
|
||||
bottomController.containerLayoutUpdated(bottomControllerLayout, transition: .immediate)
|
||||
|
||||
Reference in New Issue
Block a user