Skip to content

Commit 6513887

Browse files
committed
Various fixes
1 parent 54f21cd commit 6513887

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

submodules/AttachmentUI/Sources/AttachmentController.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1417,7 +1417,9 @@ public class AttachmentController: ViewController, MinimizableController {
14171417
let snapshotView = self.view.snapshotView(afterScreenUpdates: false)
14181418
if let contentSnapshotView = self.mainController.makeContentSnapshotView() {
14191419
if !self.mainController.isFullscreen {
1420-
contentSnapshotView.frame = contentSnapshotView.frame.offsetBy(dx: 0.0, dy: 64.0 + 56.0)
1420+
if let layout = self.validLayout {
1421+
contentSnapshotView.frame = contentSnapshotView.frame.offsetBy(dx: 0.0, dy: (layout.statusBarHeight ?? 0.0) + 10.0 + 56.0)
1422+
}
14211423
}
14221424
snapshotView?.addSubview(contentSnapshotView)
14231425
}

submodules/TelegramUI/Components/MinimizedContainer/Sources/MinimizedContainer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,7 @@ public class MinimizedContainerImpl: ASDisplayNode, MinimizedContainer, ASScroll
10791079
if let _ = itemNode.snapshotView {
10801080
if itemNode.item.controller.isFullscreen {
10811081
if layout.size.width < layout.size.height {
1082-
let snapshotFrame = itemNode.snapshotContainerView.frame.offsetBy(dx: 0.0, dy: 64.0)
1082+
let snapshotFrame = itemNode.snapshotContainerView.frame.offsetBy(dx: 0.0, dy: (layout.statusBarHeight ?? 0.0) + 10.0)
10831083
transition.updateFrame(view: itemNode.snapshotContainerView, frame: snapshotFrame)
10841084
}
10851085
} else if itemNode.item.controller.minimizedTopEdgeOffset == nil, let snapshotView = itemNode.snapshotView, snapshotView.frame.origin.y == -12.0 {

0 commit comments

Comments
 (0)