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

Can't set style value using application selector to an spark.formatters.DateTimeFormatter which is under declarations tag of a MXML Component

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • Adobe Flex SDK Previous
    • None
    • Spark: Formatters
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Browser: Firefox 3.x
      Language Found: English

    Description

      Steps to reproduce:
      1.create a MXML Component using "Group" container
      2.create a spark.formatters.DateTimeFormatter instance under "<fx:Declarations>" tag in this component.
      3.set "locale" style value using application selector in main mxml file.
      4.verify that spark.formatters.DateTimeFormatter instance is using the style value which is set in main mxml.

      Actual Results:
      The "locale" style which is marked as "inherit=yes" are using values default or undefined.

      Expected Results:
      The "locale" style which is marked as "inherit=yes" are using values set in main.

      Workaround (if any):

      NOTE: this bug happened only when this component is use "Group", "VGroup" and "HGroup" container as its root tag.

      Please see a sample code in attached src.zip.
      There have two spark.formatters.DateTimeFormatter instances defined in component:
      one under declaration tag, one in ActionScript code.

      And only the one defined under declaration tag has this bug.

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: