flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Mclean (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-33657) Spark NumericStepper - View is decimal
Date Thu, 12 Sep 2013 06:23:53 GMT

    [ https://issues.apache.org/jira/browse/FLEX-33657?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13765205#comment-13765205
] 

Justin Mclean commented on FLEX-33657:
--------------------------------------

Can someone try out this patch on windows for me?


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);
             }
 

                
> Spark NumericStepper - View is decimal
> --------------------------------------
>
>                 Key: FLEX-33657
>                 URL: https://issues.apache.org/jira/browse/FLEX-33657
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: NumericStepper
>    Affects Versions: Apache Flex 4.10.0
>            Reporter: Robbyn Gerhardt
>             Fix For: Apache Flex 4.10.0
>
>         Attachments: Bildschirmfoto 2013-08-08 um 17.51.30.png, FLEX-33657_AIR3.8_Mobile_1.PNG
>
>
> Each change in snapInterval or stepSize, you can always get a decimal number displayed.

--
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

Mime
View raw message