mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-06 17:00:13 +00:00
Fix passcode entry title label layout
This commit is contained in:
parent
45b0700230
commit
b97295d6b2
@ -21,6 +21,7 @@ final class PasscodeEntryLabelNode: ASDisplayNode {
|
||||
|
||||
self.textNode = ASTextNode()
|
||||
self.textNode.isLayerBacked = false
|
||||
self.textNode.textAlignment = .center
|
||||
|
||||
super.init()
|
||||
|
||||
@ -84,6 +85,6 @@ final class PasscodeEntryLabelNode: ASDisplayNode {
|
||||
transition.updateFrame(node: self.wrapperNode, frame: textFrame)
|
||||
transition.updateFrame(node: self.textNode, frame: CGRect(origin: CGPoint(), size: textSize))
|
||||
|
||||
return CGSize(width: size.width, height: 25.0)
|
||||
return CGSize(width: size.width, height: max(25.0, textSize.height))
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user