Return-Path: X-Original-To: apmail-flex-issues-archive@minotaur.apache.org Delivered-To: apmail-flex-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8960910879 for ; Thu, 12 Sep 2013 06:23:54 +0000 (UTC) Received: (qmail 73144 invoked by uid 500); 12 Sep 2013 06:23:54 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 73120 invoked by uid 500); 12 Sep 2013 06:23:54 -0000 Mailing-List: contact issues-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list issues@flex.apache.org Received: (qmail 73103 invoked by uid 99); 12 Sep 2013 06:23:53 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Sep 2013 06:23:53 +0000 Date: Thu, 12 Sep 2013 06:23:53 +0000 (UTC) From: "Justin Mclean (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLEX-33657) Spark NumericStepper - View is decimal MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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