         
         UIView.animateWithDuration(0.2, delay: 0, options: UIViewAnimationOptions.TransitionNone, animations: {
             self.frame = CGRectMake(
-                UIScreen.mainScreen().bounds.width-self.size-self.padding,
-                UIScreen.mainScreen().bounds.height-self.size-self.padding - keyboardSize.height,
+                UIScreen.mainScreen().bounds.width-self.size-self.paddingX,
+                UIScreen.mainScreen().bounds.height-self.size-self.paddingY - keyboardSize.height,
                 self.size,
                 self.size
             )

    /**
        Padding from bottom right of UIScreen or superview.
    */
    public var padding: CGFloat = 14 {
        didSet {
            self.setNeedsDisplay()
        }

    private func setRightBottomFrame(keyboardSize: CGFloat = 0) {
        if superview == nil {
            frame = CGRectMake(
                UIScreen.mainScreen().bounds.size.width-size-paddingX,
                UIScreen.mainScreen().bounds.size.height-size-paddingY-keyboardSize,
                size,
                size
            )
        } else {
            frame = CGRectMake(
                superview!.bounds.size.width-size-paddingX,
                superview!.bounds.size.height-size-paddingY-keyboardSize,
                size,
                size
            )
