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

Cannot inherit CSS styles in the Module(s)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Adobe Flex SDK 4.1 (Release)
    • Fix Version/s: None
    • Component/s: Styles
    • Labels:
      None
    • Environment:
      Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

      Description

      Steps to reproduce:
      1. Create css file and override some styles of some exisitng components.
      2. Create an Application with your components defined in the css file
      3. Now you create a new class extend from mx:Module and copy-paste components from the Application file
      4. Add mx:ModuleLoader into your Application file and load a Module url
      5. Now you can run app.

      I will attach example in the comments

      Actual Results:

      I can see Application displaying correct style for my components, however the module class not

      Workaround (if any):

      In mx.styles.StyleManagerImpl.as replace

      if (subjectsArray)
      theSubjects = theSubjects.concat(subjectsArray);

      to

      if (subjectsArray)
      theSubjects = subjectsArray.concat(theSubjects);

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: