mirror of
https://github.com/wahyd4/Yep.git
synced 2026-08-22 19:28:54 +10:00
clean code
This commit is contained in:
@@ -89,9 +89,8 @@ class ChatLeftTextCell: ChatBaseCell {
|
||||
// lineHeight 19.088, size.height 35.5 (1 line) 54.5 (2 lines)
|
||||
textContentTextView.textAlignment = ((size.height - textContentTextView.font!.lineHeight) < 20) ? .Center : .Left
|
||||
|
||||
//println("ceil(size.width): \(ceil(size.width)), textContentLabelWidth: \(textContentLabelWidth)")
|
||||
if ceil(size.width) != textContentLabelWidth {
|
||||
println("ceil(size.width): \(ceil(size.width)), textContentLabelWidth: \(textContentLabelWidth)")
|
||||
println("left ceil(size.width): \(ceil(size.width)), textContentLabelWidth: \(textContentLabelWidth)")
|
||||
println(">>>\(message.textContent)<<<")
|
||||
|
||||
//textContentLabelWidth += YepConfig.ChatCell.magicWidth
|
||||
|
||||
@@ -125,8 +125,6 @@ class ChatRightTextCell: ChatRightBaseCell {
|
||||
}
|
||||
}
|
||||
|
||||
println("textContentTextView.bounds: \(textContentTextView.frame), \(textContentTextView.text)")
|
||||
|
||||
if let sender = message.fromFriend {
|
||||
let userAvatar = UserAvatar(userID: sender.userID, avatarStyle: nanoAvatarStyle)
|
||||
avatarImageView.navi_setAvatar(userAvatar)
|
||||
|
||||
Reference in New Issue
Block a user