0 Replies Latest reply on Mar 28, 2010 3:27 PM by Bryan Dresselhaus

    Best Practice for Updating children UIComponents in a Container?

    Bryan Dresselhaus Level 1

      What is the best practice for updating children UIComponents in response to a Container being changed?  For instance, when a Canvas is resized, I would like to update all the children UIComponents height and width so the content scales properly.

       

      Right now I am trying to loop over the children calling InvalidateProperties, InvalidateSize, and InvalidateDisplayList on each.  I know some of the Containers such as VBox and HBox have layout managers, is there a way to leverage something like that?

       

      Thanks.