/** * @private */ override protected function measure() : void { // Temporarily move the thumb to the left of the Slider so measurement // doesn't factor in its x position. This allows resizing the // HSlider to less than 100px in width. var thumbPos:Number = thumb.getLayoutBoundsX(); thumb.setLayoutBoundsPosition(0, thumb.getLayoutBoundsY()); super.measure(); thumb.setLayoutBoundsPosition(thumbPos, thumb.getLayoutBoundsY()); }