         let imageSize = arrowImageView.image!.size
         let maxWidth = view.frame.size.width - padding * 2
         let size = currentItem.text.ks_size(of: font, maxWidth: maxWidth)
+        let maxX = padding + maxWidth - size.width
         switch region {
             
         case .upperLeft:

            } else {
                x = padding
            }
            textRect = CGRect(x: x,
                              y: arrowRect.maxY + spacing,
                              width: size.width,
                              height: size.height)

            } else {
                x = padding + maxWidth - size.width
            }
            textRect = CGRect(x: min(x, maxX),
                              y: arrowRect.maxY + spacing,
                              width: size.width,
                              height: size.height)
