         graphics.lineGradientStyle(GradientType.LINEAR, colors, alphas, ratios, colorMatrix);
         graphics.drawRoundRect(layoutStrokeWeight * 1.5, layoutStrokeWeight * 1.5, 
             layoutThumbWidth - layoutStrokeWeight * 3, layoutThumbHeight - layoutStrokeWeight * 3, 
-            layoutCornerRadius * 2 - layoutStrokeWeight * 3);
+            layoutCornerEllipseSize - layoutStrokeWeight * 3);
         graphics.lineStyle();
         
         // When alpha is set, we do not want the thumb to show through to the track 
         var thumbMask:Sprite = Sprite(SpriteVisualElement(thumb).mask);
         thumbMask.graphics.clear();
         thumbMask.graphics.beginFill(0xffffff);
-        thumbMask.graphics.drawRoundRect(0, 0, layoutThumbWidth, layoutThumbHeight, 2 * layoutCornerRadius);
+        thumbMask.graphics.drawRoundRect(0, 0, layoutThumbWidth, layoutThumbHeight, layoutCornerEllipseSize);
         thumbMask.graphics.endFill();
         SpriteVisualElement(thumb).opaqueBackground = baseColor;
     }

        super.layoutContents(unscaledWidth, unscaledHeight);
        
        // calculate skin dimensions - outer stroke
        var calculatedContentWidth:Number = Math.max(unscaledWidth - 2 * layoutOuterStrokeWeight, 
            getElementPreferredWidth(thumb));
        var calculatedContentHeight:Number = Math.max(unscaledHeight - 2 * layoutOuterStrokeWeight, 
            getElementPreferredHeight(thumb));

		setElementSize(contents, calculatedContentWidth, layoutThumbHeight);
		setElementPosition(contents, layoutOuterStrokeWeight, 
            layoutOuterStrokeWeight + (calculatedContentHeight - layoutThumbHeight) / 2);
        
        layoutTrack(calculatedContentWidth, layoutThumbHeight);
        layoutThumb(calculatedContentWidth, layoutThumbHeight);

     *  @playerversion AIR 3
     *  @productversion Flex 4.5.2
     */
    protected var layoutCornerEllipseSize:Number;
    
    /**
     * The stroke weight outlining the graphics of the skin
