Fix reordering

This commit is contained in:
Ali
2019-11-28 01:15:48 +04:00
parent 1cb69dcb72
commit 4f7c8390db
3 changed files with 55 additions and 16 deletions

View File

@@ -1083,7 +1083,7 @@ class ChatListItemNode: ItemListRevealOptionsItemNode {
let layoutOffset: CGFloat = 0.0
let rawContentOriginX = 2.0
let rawContentWidth = params.width - leftInset - params.rightInset - 10.0
let rawContentWidth = params.width - leftInset - params.rightInset - 10.0 - reorderInset
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()))