no message

This commit is contained in:
Peter
2017-03-23 21:27:34 +03:00
parent 2707eea1c3
commit d057bc1f6a
73 changed files with 836 additions and 151 deletions

View File

@@ -316,7 +316,7 @@ class ChatMessageBubbleItemNode: ChatMessageItemView {
attributedString = NSAttributedString(string: "", font: nameFont, textColor: UIColor.black)
}
let sizeAndApply = authorNameLayout(attributedString, nil, 1, .end, CGSize(width: maximumNodeWidth, height: CGFloat.greatestFiniteMagnitude), nil)
let sizeAndApply = authorNameLayout(attributedString, nil, 1, .end, CGSize(width: maximumNodeWidth, height: CGFloat.greatestFiniteMagnitude), .natural, nil)
nameNodeSizeApply = (sizeAndApply.0.size, {
return sizeAndApply.1()
})