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

[FCLayout] SpriteVisualElement does not have public properties minWidth, maxWidth, minHeight, maxHeight

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • None
    • Spark: Layout
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      You can see this bug in Catalyst, but only by using a build of Catalyst that includes Evtim's latest SDK changes and my latest Catalyst code, which is not yet available. Evtim knows about this issue, talk to him.

      Steps to reproduce:
      1. Open the attached project MissingProperties.fxp
      2. Select the left-hand object, which is a Rect, and resize it using the bottom handle.
      3. Now select the right-hand object, which is an Optimized Graphic, and resize it the same way.

      Actual Results: the two objects look different.

      Expected Results:the two objects look the same.

      The reason for the difference is that Catalyst uses the min/maxWidth/Height properties to control how setLayoutBoundsSize() should work. This is OK for rects, bitmaps etc, but doesn't work for SpriteVisualElement because that class doesn't have the min/maxWidth/Height. We need these properties to be added to SpriteVisualElement so that one-dimensional resizing works consistently for all object types.

      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: