     // MARK: - Size calculator
     
     private func calculateLableSize(size: CGSize = UIScreen.mainScreen().bounds.size) -> CGSize {
-        let labelSize = NSString(string: title).boundingRectWithSize(CGSizeMake(CGFloat.max, CGFloat.max), options: NSStringDrawingOptions.UsesLineFragmentOrigin, attributes: [NSFontAttributeName: titleLabelFont], context: nil).size
+        let labelSize = NSString(string: title).boundingRectWithSize(CGSizeMake(CGFloat.max, CGFloat.max), options: NSStringDrawingOptions.UsesLineFragmentOrigin, attributes: [NSFontAttributeName: titleLabel.font], context: nil).size
 
         let itemWidth: CGFloat
         switch options.menuDisplayMode {

            backgroundColor = selected ? options.selectedBackgroundColor : options.backgroundColor
        }
        titleLabel.textColor = selected ? options.selectedTextColor : options.textColor
        titleLabelFont = selected ? options.selectedFont : options.font

        // adjust label width if needed
        let labelSize = calculateLableSize()

    private var options: PagingMenuOptions!
    private var title: String!
    private var titleLabel: UILabel!
    private var widthLabelConstraint: NSLayoutConstraint!
    
    // MARK: - Lifecycle
