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

SWFLoader (Image) doesn't display correct measured size if scaleContent == true

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 4.5 (Release)
    • None
    • mx: Image, mx: SWFLoader
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Browser: Safari
      Language Found: English

    Description

      Steps to reproduce:
      1.set maxHeight, maxWidth, and scaleContent = true on an Image.
      2.put it in a container with width == image.maxWidth and height == image.maxHeight
      3.FlexEvent.UPDATE_COMPLETE happens BEFORE Event.COMPLETE (this is understandable), but when the content is loaded, it takes an EXTRA FRAME to update the display list. It seems the scaleContent methods should run immediately on Complete.

      Actual Results:
      This causes the container to have to go through two validation passes, which causes the graphic to jolt to the new scaled image size.

      Expected Results:
      No jolting, with quicker scaleContent. This would allow the parent container to get the measuredWidth/measuredHeight of the image when it is sizing itself.

      Workaround (if any):
      Nothing

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: