mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix wallpaper preview
This commit is contained in:
parent
2c9abf7a1b
commit
173f0ad874
@ -868,7 +868,7 @@ final class WallpaperGalleryItemNode: GalleryItemNode {
|
|||||||
let alpha = 1.0 - min(1.0, max(0.0, abs(offset.y) / 50.0))
|
let alpha = 1.0 - min(1.0, max(0.0, abs(offset.y) / 50.0))
|
||||||
|
|
||||||
if let messageNodes = self.messageNodes {
|
if let messageNodes = self.messageNodes {
|
||||||
var bottomOffset: CGFloat = 9.0 + bottomInset
|
var bottomOffset: CGFloat = 9.0 + bottomInset + layout.intrinsicInsets.bottom
|
||||||
for itemNode in messageNodes {
|
for itemNode in messageNodes {
|
||||||
transition.updateFrame(node: itemNode, frame: CGRect(origin: CGPoint(x: offset.x, y: bottomOffset - offset.y), size: itemNode.frame.size))
|
transition.updateFrame(node: itemNode, frame: CGRect(origin: CGPoint(x: offset.x, y: bottomOffset - offset.y), size: itemNode.frame.size))
|
||||||
bottomOffset += itemNode.frame.height
|
bottomOffset += itemNode.frame.height
|
||||||
|
Loading…
x
Reference in New Issue
Block a user