     // MARK: - Object Lifecycle
     
     required public init?(coder aDecoder: NSCoder) {
+        calculationLayoutManager.addTextContainer(calculationTextContainer)
         super.init(coder: aDecoder)
         commonInitializer()
     }
     
     override public init(frame: CGRect, textContainer: NSTextContainer?) {
+        calculationLayoutManager.addTextContainer(calculationTextContainer)
         super.init(frame: frame, textContainer: textContainer)
         commonInitializer()
     }

    
    override open var contentSize: CGSize {
        didSet {
            guard window != nil && !oldValue.equalTo(contentSize) else {
                return
            }
            if isFirstResponder {
                refreshHeightIfNeededAnimated(animateHeightChange)
            } else {
                refreshHeightIfNeededAnimated(false)

                break
            }
        }
    }
    
    private func heightForNumberOfLines(_ numberOfLines: Int) -> CGFloat {
