mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Various fixes
This commit is contained in:
@@ -1485,7 +1485,7 @@ open class TextNode: ASDisplayNode {
|
||||
|
||||
var blockQuotes: [TextNodeBlockQuote] = []
|
||||
|
||||
loop: for i in 0 ..< calculatedSegments.count {
|
||||
for i in 0 ..< calculatedSegments.count {
|
||||
let segment = calculatedSegments[i]
|
||||
if i != 0 {
|
||||
if segment.blockQuote != nil {
|
||||
@@ -1510,10 +1510,6 @@ open class TextNode: ASDisplayNode {
|
||||
}
|
||||
|
||||
for line in segment.lines {
|
||||
var isLastLine = false
|
||||
if maximumNumberOfLines > 0 && lines.count == maximumNumberOfLines - 1 {
|
||||
isLastLine = true
|
||||
}
|
||||
line.frame = CGRect(origin: CGPoint(x: line.frame.origin.x, y: -insets.bottom + size.height + line.frame.size.height), size: line.frame.size)
|
||||
line.frame.size.width += max(0.0, segment.additionalWidth - 2.0)
|
||||
//line.frame.size.width = max(blockWidth, line.frame.size.width)
|
||||
@@ -1579,10 +1575,6 @@ open class TextNode: ASDisplayNode {
|
||||
}
|
||||
|
||||
lines.append(line)
|
||||
|
||||
if isLastLine {
|
||||
break loop
|
||||
}
|
||||
}
|
||||
|
||||
let blockMaxY = size.height - insets.bottom
|
||||
|
||||
Reference in New Issue
Block a user