     
     func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {
         if indexPath.row == 0 {
-            return 90; // response
+            return defaultResponseCellHeight // response
         }
         else {
-            return 100; // comments
+            let fixedWidth = tableView.frame.size.width - 2.0*DiscussionCommentCell.marginX
+            let label = UILabel()
+            label.numberOfLines = 0
+            label.attributedText = largeTextStyle.attributedStringWithText(comments[indexPath.row - 1].body)
+            let newSize = label.sizeThatFits(CGSizeMake(fixedWidth, CGFloat.max))
+            
+            if newSize.height > minBodyTextHeight {
+                return nonBodyTextHeight + newSize.height
+            }
+            
+            return defaultCommentCellHeight // comments
         }
     }
     

            make.width.equalTo(14)
            make.top.equalTo(bodyTextLabel.snp_bottom)
        }
    
    }
    
    


 class DiscussionCommentsViewController: UIViewController, UITableViewDataSource, UITableViewDelegate, NewCommentDelegate {
    private let identifierCommentCell = "CommentCell"
    private let minBodyTextHeight: CGFloat = 70.0
    private let nonBodyTextHeight: CGFloat = 40.0
    private let defaultResponseCellHeight: CGFloat = 100.0
    private let defaultCommentCellHeight: CGFloat = 90.0
    
    private let environment: DiscussionCommentsViewControllerEnvironment
    private let addCommentButton = UIButton.buttonWithType(.System) as! UIButton
    private var tableView: UITableView!
