mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Various fixes
This commit is contained in:
@@ -167,12 +167,7 @@ final class InstantPageNavigationBar: ASDisplayNode {
|
||||
}
|
||||
|
||||
func updateLayout(size: CGSize, minHeight: CGFloat, maxHeight: CGFloat, topInset: CGFloat, leftInset: CGFloat, rightInset: CGFloat, title: String?, pageProgress: CGFloat, transition: ContainedViewLayoutTransition) {
|
||||
let progressHeight: CGFloat
|
||||
if !topInset.isZero {
|
||||
progressHeight = size.height - topInset + 11.0 - UIScreenPixel
|
||||
} else {
|
||||
progressHeight = size.height
|
||||
}
|
||||
let progressHeight = size.height
|
||||
transition.updateFrame(node: self.pageProgressNode, frame: CGRect(origin: CGPoint(x: 0.0, y: size.height - progressHeight), size: CGSize(width: floorToScreenPixels(size.width * pageProgress), height: progressHeight)))
|
||||
|
||||
let transitionFactor = (size.height - minHeight) / (maxHeight - minHeight)
|
||||
|
||||
Reference in New Issue
Block a user