     override func layoutSubviews() {
         updateViewIfNeeded()
         super.layoutSubviews()
+        if autoUpdateCellHeights {
+            updateCellHeights()
+        }
     }
 
 }

        }
    }
    
    // MARK: - UITextField
    
    override func placeholderRectForBounds(bounds: CGRect) -> CGRect {

class NibTextField: UITextField {

    // MARK: - Variables
    
    @IBInspectable var autoUpdateCellHeights: Bool = true
    
    /// Override in subclass
    var contentView: NibView? {
