mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Stories
This commit is contained in:
@@ -1261,7 +1261,7 @@ open class TextNode: ASDisplayNode {
|
||||
var additionalTrailingLine: (CTLine, Double)?
|
||||
|
||||
var measureFitWidth = CTLineGetTypographicBounds(originalLine, nil, nil, nil) - CTLineGetTrailingWhitespaceWidth(originalLine)
|
||||
if customTruncationToken != nil {
|
||||
if customTruncationToken != nil && lineRange.location + lineRange.length < attributedString.length {
|
||||
measureFitWidth += truncationTokenWidth
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user