[
https://issues.apache.org/jira/browse/FLEX-13978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Justin Mclean resolved FLEX-13978.
----------------------------------
Resolution: Cannot Reproduce
Fixed in earlier version of the SDK.
> Cannot reduce six pixels left and right gaps in MX HSlider component
> --------------------------------------------------------------------
>
> Key: FLEX-13978
> URL: https://issues.apache.org/jira/browse/FLEX-13978
> Project: Apache Flex
> Issue Type: Bug
> Components: mx: Slider
> Affects Versions: Adobe Flex SDK 3.0 (Release)
> Environment: Affected OS(s): All OS Platforms
> Language Found: English
> Reporter: Adobe JIRA
>
> Steps to reproduce:
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" paddingLeft="10"
> paddingRight="10">
> <mx:HBox width="100%" backgroundColor="#ff0000">
> <mx:HSlider width="100%"/>
> </mx:HBox>
> </mx:Application>
>
> Actual Results:
>
> See Attachments
>
> Expected Results:
>
> Must be no gap on the end width is 100%
> Workaround (if any):
>
> Not with current implementation. I think problem on calculation
> trackLeftOffset variable in mx.controls.sliderClasses.Slider class.
> May be better to declare widestThumb value into CSS component style.
> override protected function updateDisplayList(unscaledWidth:Number,
> unscaledHeight:Number):void
> {
> super.updateDisplayList(unscaledWidth, unscaledHeight);
> var isHorizontal:Boolean = (_direction == SliderDirection.HORIZONTAL);
> var numLabels:int = labelObjects ? labelObjects.numChildren : 0;
> var numThumbs:int = thumbs ? thumbs.numChildren : 0;
> var trackMargin:Number = getStyle("trackMargin");
> var widestThumb:Number = 6;
> var trackLeftOffset:Number = widestThumb / 2; // Enough space for the
> thumb to rest at the edges
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira