mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Various fixes
This commit is contained in:
parent
54f21cdf1b
commit
6513887eed
@ -1417,7 +1417,9 @@ public class AttachmentController: ViewController, MinimizableController {
|
||||
let snapshotView = self.view.snapshotView(afterScreenUpdates: false)
|
||||
if let contentSnapshotView = self.mainController.makeContentSnapshotView() {
|
||||
if !self.mainController.isFullscreen {
|
||||
contentSnapshotView.frame = contentSnapshotView.frame.offsetBy(dx: 0.0, dy: 64.0 + 56.0)
|
||||
if let layout = self.validLayout {
|
||||
contentSnapshotView.frame = contentSnapshotView.frame.offsetBy(dx: 0.0, dy: (layout.statusBarHeight ?? 0.0) + 10.0 + 56.0)
|
||||
}
|
||||
}
|
||||
snapshotView?.addSubview(contentSnapshotView)
|
||||
}
|
||||
|
@ -1079,7 +1079,7 @@ public class MinimizedContainerImpl: ASDisplayNode, MinimizedContainer, ASScroll
|
||||
if let _ = itemNode.snapshotView {
|
||||
if itemNode.item.controller.isFullscreen {
|
||||
if layout.size.width < layout.size.height {
|
||||
let snapshotFrame = itemNode.snapshotContainerView.frame.offsetBy(dx: 0.0, dy: 64.0)
|
||||
let snapshotFrame = itemNode.snapshotContainerView.frame.offsetBy(dx: 0.0, dy: (layout.statusBarHeight ?? 0.0) + 10.0)
|
||||
transition.updateFrame(view: itemNode.snapshotContainerView, frame: snapshotFrame)
|
||||
}
|
||||
} else if itemNode.item.controller.minimizedTopEdgeOffset == nil, let snapshotView = itemNode.snapshotView, snapshotView.frame.origin.y == -12.0 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user