         let superSize = super.intrinsicContentSize()
         textContainer.size = CGSize(width: superSize.width, height: CGFloat.max)
         let size = layoutManager.usedRectForTextContainer(textContainer)
-        return CGSize(width: ceil(size.width), height: ceil(size.height))
+        return CGSize(width: size.width, height: ceil(size.height))
     }
     
     // MARK: - touch events

        paragraphStyle.lineBreakMode = NSLineBreakMode.ByWordWrapping
        paragraphStyle.alignment = textAlignment
        paragraphStyle.lineSpacing = CGFloat(lineSpacing)
        
        attributes[NSParagraphStyleAttributeName] = paragraphStyle
        mutAttrString.setAttributes(attributes, range: range)
        

    @IBInspectable public var lineSpacing: Float = 0 {
        didSet { updateTextStorage(parseText: false) }
    }
    @IBInspectable public var minimumLineHeight: Float = 0 {
        didSet { updateTextStorage(parseText: false) }
    }
    // MARK: - public methods
    public func handleMentionTap(handler: (String) -> ()) {
        mentionTapHandler = handler
