 
     /// Buttons
     private func setButtons() {
-        let itemHeight = CGFloat(buttons.count) * Constants.mmbuttonHeight + CGFloat(buttons.count) * Constants.mmdivideLineHeight + Constants.paddng_bottom
+        let itemHeight = CGFloat(buttons.count) * Constants.mmbuttonHeight + CGFloat(buttons.count) * Constants.mmdivideLineHeight + Constants.paddng_bottom + (title != nil ? Constants.mmtitleHeight : 0)
         let view = UIView(frame: CGRect(x: 0, y: 0, width: Constants.mmscreenWidth, height: itemHeight))
         scrollView.addSubview(view)
         scrollView.contentSize = CGSize(width: Constants.mmscreenWidth, height: itemHeight)

        setButtons()
        /// Cancel Button
        setCancelButton()
    }

    /// Title

            button.addTarget(self, action: #selector(actionClick), for: .touchUpInside)
            view.addSubview(button)
        }
    }

    /// ExtraView
    private func setExtraView() {
        guard MMTools.isIphoneX else { return }
        let frame = CGRect(x: 0, y: Int(self.actionSheetView.bounds.size.height - Constants.mmbuttonHeight - Constants.paddng_bottom + Constants.mmbuttonHeight), width: Int(Constants.mmscreenWidth), height: Int(Constants.paddng_bottom) + 10)
        let extraView = UIView()
        extraView.frame = frame
        if cancelButton != nil {
            extraView.backgroundColor = cancelButton?.backgroudImageColorNormal?.rawValue
        } else {
            let bgColor = buttons.first?.backgroudImageColorNormal?.rawValue
            extraView.backgroundColor = bgColor
        }
        self.actionSheetView.addSubview(extraView)
    }

    /// Cancel Button
