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

LayoutManager initializes components which are no longer on stage

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Apache Flex 4.16.0
    • Apache Flex 4.16.1
    • Layout - General
    • None

    Description

      Scenario A: during an object's validation cycle some code resulting from validateSize(), validateProperties() or validateDisplayList() results in the object's removal from stage.

      Scenario B: a user performs an action whose effect is the removal of a component, exactly when that component is being validated in phases (LayoutManager.usePhasedInstantiation == true, which is to say, in the span of two-three frames).


      Expected behaviour: LayoutManager detects the object's removal from stage, stops validating it, and never sets its initialized flag to true.
      Actual behaviour: LayoutManager does not detect the object's removal from stage, continues validating it, and ends up setting the object's initialized flag to true.
      Unit test: LayoutManager_FLEX_35321_Tests.

      Attachments

        Activity

          People

            evolverine Mihai Chira
            evolverine Mihai Chira
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: