Clever idea.  I didn't try it but from looking at this diff, I wonder if
it is ok to tie the number of decimal places to the step size.  Couldn't
there be a difference like stepping by whole dollars but wanting to show
cents, or maybe starting at some fractional value but stepping by whole
integers, or having the step size have more decimal places but show fewer
in order to deal with round off?

Do we know if we're using the right "field" from the globalization
classes?  Is it a bug in the player we are working around?

Thanks,
-Alex

On 9/11/13 11:24 PM, "Justin Mclean" <jus...@classsoftware.com> wrote:

>Hi,
>
>Someone mind trying out this patch for the spark NumericSpinner?
>
>diff --git 
>a/frameworks/projects/spark/src/spark/components/NumericStepper.as
>b/frameworks/projects/spark/src/spark/components/NumericStepper.as
>index 6a45b32..02d0ebf 100644
>--- a/frameworks/projects/spark/src/spark/components/NumericStepper.as
>+++ b/frameworks/projects/spark/src/spark/components/NumericStepper.as
>@@ -796,6 +796,7 @@ public class NumericStepper extends Spinner
>             if (dataFormatter == null)
>             {
>                 dataFormatter = new NumberFormatter();
>+                              dataFormatter.fractionalDigits = Math.max(0, 
>(stepSize -
>Math.floor(stepSize)).toString().length - 2);
>                 addStyleClient(dataFormatter);
>             }
> 
>
>And see if it fixes this issue:
>https://issues.apache.org/jira/browse/FLEX-33657
>
>Thanks,
>Justin

Reply via email to