                 titleFrame = imageFrame.setX(contentEdgeInsets.left + titleEdgeInsets.left)
                 titleFrame = titleFrame.setWidth(titleLimitSize.width)
             }
-            
+
             if imagePosition == .top {
                 switch contentVerticalAlignment {
                 case .top:

                titleFrame = titleFrame.setX(contentEdgeInsets.left + titleEdgeInsets.left)
                titleFrame = titleFrame.setX(imageFrame.minX - imageEdgeInsets.left - titleEdgeInsets.right - titleFrame.minX)
            }
            
            switch contentVerticalAlignment {
            case .top:
                titleFrame = titleFrame.setY(contentEdgeInsets.top + titleEdgeInsets.top)

        super.init(frame: frame)
        initialize(with: ghostColor)
    }

    convenience init(with ghostType: QMUIGhostButtonColor) {
        self.init(with: ghostType, frame: .zero)
    }

    convenience init(with ghostType: QMUIGhostButtonColor, frame: CGRect) {
        var ghostColor: UIColor?
        switch ghostType {
