0 Replies Latest reply on Oct 17, 2009 2:02 AM by jjenkov

    Flex Suggestion:  updateDisplayList() --> updateDisplayListBeforeChildren() + updateDisplayListAfterChildren()

    jjenkov

      In a normal Flex component a parent component draws itself before any child components.

      In effect, all child component's draw themselves ontop of the parent component.

       

      There can be situations, however, where you want the parent component to be able to draw

      ontop of the child components instead.

       

      Therefore I suggest that the updateDisplayList() is somehow broken into two methods:

       

       

      updateDisplayListBeforeChildren()

       

         sets the sizes of children, and draws the base of this component

       


      updateDisplayListAfterChildren()

       

         draws ontop of children.

       

       

      Perhaps the methods should simply be called something else. Maybe updateDisplayList()

      should be kept to do the child sizing, and two new paint methods introduced:

       


      paintBeforeChildren()

       

      paintAfterChildren()

       

       

      What do you think? Can this already be done via other means? Or is this a good idea?