You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jm...@apache.org on 2013/09/12 10:55:36 UTC
git commit: [flex-sdk] [refs/heads/develop] - FLEX-33657 Stop stepper
showing 2 decimal places on windows
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 <jm...@apache.org>
Authored: Thu Sep 12 18:54:58 2013 +1000
Committer: Justin Mclean <jm...@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);
}