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

Side-effecting the x/y properties on a component and invalidating the properties causes parent display list invalidation (calling setLayoutMatrix(m, false) will invalidate the parent layout causing infinate loop)

    XMLWordPrintableJSON

Details

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

    Description

      Steps to reproduce:
      Call to setLayoutMAtrix() with matrix that changes the x/y position from within the layout will cause an inifiite loop.

      Repro steps:
      1. Compile and run the attached file
      2. Click the button to set the layout matrix of the objects

      Result:
      The parent is invalidated and the red rectangle expands.

      Expected:
      The parent is not invalidates, since the invalidateLayout parameter was false. The red rectangle should not change.

      Work-around:
      call move(m.tx, m.ty) on the UIComponent before setting the matrix m.

      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: