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

embedded defaults.css in swc no longer functioning for some type selectors at 4.1. It worked with 3.5



    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Adobe Flex SDK 4.0 (Release)
    • Fix Version/s: None
    • Component/s: Styles
    • Labels:
    • Environment:
      Affected OS(s): Windows
      Browser: Firefox 3.x
      Language Found: English


      Steps to reproduce:
      1. Import attached BaseEmbeddedCustomStylesheetLibrary and BaseTestApp projects
      2. Make sure you are compiling with Flex 4+ SDK and Halo theme.
      3. Run TestEmbeddedSWCCustomStylesheet.mxml

      Actual Results:
      None of the Panel type selector styles from swcs defaults.css are getting picked up. Other styles from defaults.css for custom component are getting picked up so the embedded defaults.css is working properly other than certain type selectors being ignored.

      Expected Results:
      Expected all styles from swc dependencies defaults.css to be picked up.

      If you run either of the other two provided samples that show the exact same styles being applied by dynamically loading a compiled stylesheet or by using inline styles you will see the proper results.

      If you compile these projects with Flex SDK 3.5 you will see all three projects behaving properly. This only happens if using SDK 4+ and if the theme is Halo. If you switch theme to Spark then things obviously look different but the embedded Panel styles are picked up properly.

      Workaround (if any):
      These workarounds aren't really helpful for me but I'll list them in case they help anyone else out
      Use Spark theme rather than Halo
      Use 3.5 SDK
      Dynamically load the stylesheet instead of embedded defaults.css
      Use inline styling insead of embedded defaults.css




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


              • Created: