     // mask view
     let maskViewTapGesture = UITapGestureRecognizer(target: self, action: #selector(CustomizableActionSheet.maskViewWasTapped))
     self.maskView.addGestureRecognizer(maskViewTapGesture)
-    self.maskView.frame = screenBounds
+    self.maskView.frame = targetBounds
     self.maskView.backgroundColor = UIColor(red: 0, green: 0, blue: 0, alpha: 0.5)
     targetView.addSubview(self.maskView)
 

    }
    self.itemContainerView.frame = CGRect(
      x: 0,
      y: screenBounds.height - currentPosition,
      width: screenBounds.width,
      height: currentPosition)
    self.items = items

    // Show animation
    self.maskView.alpha = 0
    targetView.addSubview(self.itemContainerView)
    let moveY = screenBounds.height - self.itemContainerView.frame.origin.y
    self.itemContainerView.transform = CGAffineTransform(translationX: 0, y: moveY)
    UIView.animate(withDuration: 0.4,
      delay: 0,

          let containerView = ActionSheetItemView(frame: CGRect(
            x: CustomizableActionSheet.kMarginSide,
            y: currentPosition,
            width: targetBounds.width - (CustomizableActionSheet.kMarginSide * 2),
            height: item.height))
          containerView.layer.cornerRadius = CustomizableActionSheet.kCornerRadius
          containerView.addSubview(view)
