mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix chat list layout when editing
This commit is contained in:
parent
3ace052fff
commit
5c57f30606
@ -1083,7 +1083,7 @@ class ChatListItemNode: ItemListRevealOptionsItemNode {
|
|||||||
let layoutOffset: CGFloat = 0.0
|
let layoutOffset: CGFloat = 0.0
|
||||||
|
|
||||||
let rawContentOriginX = 2.0
|
let rawContentOriginX = 2.0
|
||||||
let rawContentWidth = params.width - leftInset - params.rightInset - 10.0 - reorderInset
|
let rawContentWidth = params.width - leftInset - params.rightInset - 10.0 - editingOffset
|
||||||
|
|
||||||
let (dateLayout, dateApply) = dateLayout(TextNodeLayoutArguments(attributedString: dateAttributedString, backgroundColor: nil, maximumNumberOfLines: 1, truncationType: .end, constrainedSize: CGSize(width: rawContentWidth, height: CGFloat.greatestFiniteMagnitude), alignment: .natural, cutout: nil, insets: UIEdgeInsets()))
|
let (dateLayout, dateApply) = dateLayout(TextNodeLayoutArguments(attributedString: dateAttributedString, backgroundColor: nil, maximumNumberOfLines: 1, truncationType: .end, constrainedSize: CGSize(width: rawContentWidth, height: CGFloat.greatestFiniteMagnitude), alignment: .natural, cutout: nil, insets: UIEdgeInsets()))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user