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

Can't inherit styles into user customized Module when use it directly as a component.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 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 Module, and add a Label in it.
      2.set the "text" property of this Lable to "

      {this.getStyle("fontSize")}

      ".
      3.set value of style "fontSize" to "20" using application selector in main mxml file.
      4.use this module as a component way, like:
      <local:UserCustomedModule />
      Do NOT use it normally: <mx:ModuleLoader url="UserCustomedModule.swf" />
      5.run application, verify the label in module will show "20".

      Actual Results:
      The text of label is "12", the default font size.

      Expected Results:
      The text of label is "20", which is set in main mxml.

      Workaround (if any):

      A sample code is attached with name "src.zip".

      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: