     override protected function pointClickToPosition(localX:Number,
                                                      localY:Number):Number
     {
-        var thumbLElement:ILayoutElement = 
-            LayoutElementFactory.getLayoutElementFor(thumb);
-        return pointToPosition(localX, localY) - thumbLElement.getLayoutBoundsWidth() / 2;
+        return pointToPosition(localX, localY) - thumb.getLayoutBoundsWidth() / 2;
     }
     
     /**


import spark.components.supportClasses.Slider;
import mx.core.ILayoutElement;
import spark.layout.supportClasses.LayoutElementFactory;

[IconFile("HSlider.png")]


    {
        if (thumb)
        {
            var trackPos:Number = track.getLayoutBoundsX();
            thumb.setLayoutBoundsPosition(Math.round(trackPos + thumbPos),
                                          thumb.getLayoutBoundsY());
        }
    }
    
