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

BitmapImage flips its content when added to a container which is not in a display list

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK 4.1 (Release)
    • None
    • Spark: Image
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows 7
      Browser: Firefox 3.x
      Language Found: English

    Description

      Steps to reproduce:
      1. Create instance of BitmapImage and set its source property.
      2. Create a container and add that BitmapImage to it as a child.
      3. Add the container to the display list.
      4. Compile and run the application.

      Note: Steps 1 through 3 should be implemented using ActionScript and not MXML. Components must be created and configured during runtime.

      Actual Results:
      BitmapImage has its content flipped as if layoutDirection has been set to LayoutDirection.RTL, although it has not been done so (debbuger shows that BitmapImage.layoutDirection is set to LayoutDirection.LTR).

      Expected Results:
      BitmapImage should not have flipped its content.

      Workaround (if any):
      Add the container to the display list and only then add the BitmapImage to the container.

      Additional comments:
      This is a regression from SDK Flex 4.0: the bug does not exist in this version.
      The workaround forces us (framework users) to add BitmapImage instances only to components and containers which are in the display list. This means we can't do that in the constructor of a container for example.
      I have attached main MXML file of the test application which will allow one to reproduce the bug. You will have to provide your own image.
      This bug might have something in common with bug SDK-26346.

      Instead of using a Group, use SkinnableContainer.

      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: