     }
     
     private func createCircleLayer() {
-        circleLayer.frame = CGRectMake(0, 0, size, size)
+        circleLayer.frame = CGRectMake(frame.size.width - size, 0, size, size)
         circleLayer.backgroundColor = buttonColor.CGColor
         circleLayer.cornerRadius = size/2
         layer.addSublayer(circleLayer)
     }
     
     private func createTintLayer() {
-        tintLayer.frame = CGRectMake(0, 0, size, size)
+        tintLayer.frame = CGRectMake(frame.size.width - size, 0, size, size)
         tintLayer.backgroundColor = UIColor.whiteColor().colorWithAlphaComponent(0.2).CGColor
         tintLayer.cornerRadius = size/2
         layer.addSublayer(tintLayer)

    */
    public override func drawRect(rect: CGRect) {
        super.drawRect(rect)
        
        self.layer.shouldRasterize = true
        self.layer.rasterizationScale = UIScreen.mainScreen().scale

        didSet {
            titleLabel.text = title
            titleLabel.sizeToFit()
        }
    }
    
