 import UIKit
 
 public class CommentTableViewCell: WallTableViewCell {
+
+  public override class func height(post: Post) -> CGFloat {
+    let postText = post.text as NSString
+    let textFrame = postText.boundingRectWithSize(CGSize(
+      width: UIScreen.mainScreen().bounds.width - Dimensions.textOffset - Dimensions.sideOffset,
+      height: CGFloat.max), options: .UsesLineFragmentOrigin,
+      attributes: [ NSFontAttributeName : UIFont.systemFontOfSize(14) ], context: nil)
+
+    return 101 + textFrame.height
+  }
 
   public static let reusableIdentifier = "CommentTableViewCell"
 

    [avatarImageView, authorName, postText, dateLabel].forEach {
      addSubview($0)
      $0.opaque = true
      $0.backgroundColor = UIColor.whiteColor()
    }

    layer.addSublayer(bottomSeparator)
    opaque = true

    dateLabel.text = post.publishDate

    bottomSeparator.frame = CGRect(x: 0, y: dateLabel.frame.maxY + 26,
      width: UIScreen.mainScreen().bounds.width, height: 0.5)
  }
}

