     
     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 textView(textView:UITextView, shouldChangeTextInRange range:NSRange, replacementText text:String) -> Bool
    {
        let currentText:NSString = NSString(string:textView.text)
        let newText:String = currentText.stringByReplacingCharactersInRange(range, withString:text)
        heightForText(newText)
        
        return true
    }
}
                    { [weak self] in
                        
                        self?.field.text = self?.kEmpty
                        self?.heightForText()
                    }
                }
            }
        }
    }
    
    private func heightForText()
    {
        let newHeight:CGFloat
        let height:CGFloat = field.contentSize.height
        
        if height > kMaxHeight
        {
