flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcl...@apache.org
Subject git commit: [flex-sdk] [refs/heads/develop] - FLEX-33657 Stop stepper showing 2 decimal places on windows
Date Thu, 12 Sep 2013 08:55:36 GMT
Updated Branches:
  refs/heads/develop ba2cbc50e -> 6585ef0f3


FLEX-33657 Stop stepper showing 2 decimal places on windows


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/6585ef0f
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/6585ef0f
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/6585ef0f

Branch: refs/heads/develop
Commit: 6585ef0f3edb029344bb94ebf5b295c019245612
Parents: ba2cbc5
Author: Justin Mclean <jmclean@apache.org>
Authored: Thu Sep 12 18:54:58 2013 +1000
Committer: Justin Mclean <jmclean@apache.org>
Committed: Thu Sep 12 18:54:58 2013 +1000

----------------------------------------------------------------------
 frameworks/projects/spark/src/spark/components/NumericStepper.as | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/6585ef0f/frameworks/projects/spark/src/spark/components/NumericStepper.as
----------------------------------------------------------------------
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);
             }
 


Mime
View raw message