Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-34735

Spark CurrencyFormatter incorrectly formats 0 on iPad

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Apache Flex 4.13.0
    • None
    • Spark: Formatters
    • None
    • iOS 8.1.3

    Description

      Formatting a zero currency value with spark.formatters.CurrencyFormatter and the en_US locale works correctly on all platforms I've tried but not on iPad - instead of 0.00 it returns 0 (no decimals). Other number values without fractional parts format correctly (i.e., 78.00)

      I've tried forcing fractionalDigits=2 and trailingZeros=true, no change.

      This actually is an issue with flash.globalization.CurrencyFormatter - I traced through the code and the Spark formatter is just returning the result from the lower-level formatter. I tried to submit a bug with Adobe, but was not successful.

      [The MX CurrencyFormatter works correctly, but I'd rather not roll back...]

      Attachments

        1. LockedDataGridTest.mxml
          3 kB
          Bill Turner

        Activity

          People

            Unassigned Unassigned
            billt Bill Turner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: