     
     override public func layoutSubviews() {
         super.layoutSubviews()
-        shapeLayer.frame.origin  = frame.origin
-        shapeLayer.bounds.origin = frame.origin
     }
     
     func setShapeLayer(colors: HOKColors) {
         self.backgroundColor = UIColor.clearColor()
         shapeLayer.fillColor = colors.backgroundColor.CGColor
+        shapeLayer.frame     = frame
         self.layer.insertSublayer(shapeLayer, atIndex: 0)
     }
     

            height: menuHeight
        )
        
        menuView.shapeLayer.frame         = menuView.frame
        menuView.shapeLayer.bounds.origin = menuView.frame.origin
        menuView.shapeLayer.layoutIfNeeded()
        menuView.layoutIfNeeded()
        
        for var i = 0; i < buttons.count; i++ {
            let btn = buttons[i]

        
        // This is needed to retain this instance.
        instance = self
        
        let colors = (self.colors == nil) ? colorScheme.getColors() : self.colors
        
