     weak var field:UITextView!
     weak var layoutHeight:NSLayoutConstraint!
     let kMinHeight:CGFloat = 40
-    let stringDrawingOptions:NSStringDrawingOptions
-    private let marginField:CGFloat
     private let kFieldMarginVr:CGFloat = 4
     private let kBorderHeight:CGFloat = 1
-    private let kMaxHeight:CGFloat = 80
+    private let kMaxHeight:CGFloat = 75
     private let kCornerRadius:CGFloat = 4
     private let kSendButtonWidth:CGFloat = 50
     private let kHypoteticalMaxHeight:CGFloat = 10000

    
    init(controller:CChat)
    {
        marginField = kBorderHeight + kFieldMarginVr + kFieldMarginVr
        stringDrawingOptions = NSStringDrawingOptions([
            NSStringDrawingOptions.UsesLineFragmentOrigin,
            NSStringDrawingOptions.UsesFontLeading
            ])
        
        super.init(frame:CGRectZero)
        clipsToBounds = true
        translatesAutoresizingMaskIntoConstraints = false

    
    //MARK: textview del
    
    func textViewDidBeginEditing(textView:UITextView)
    {
        heightForText()
    }
    
    func textViewDidEndEditing(textView:UITextView)
    {
        heightForText()
    }
    
    func textViewDidChange(textView:UITextView)
    {
        heightForText()
    }
}