7 Replies Latest reply on Feb 6, 2009 3:19 PM by Newsgroup_User

    auto grow canvas to contain children?

    Clifford Meece
      Hi, I have a custom component that extends Canvas. It has a few children like buttons and textinputs, and a custom programmatic skin. When one of the children grows (like my textInput), the parent canvas gains scroll bars, but I'd like the canvas to grow instead, so that it is always big enough to contain it's children. Is there a way to set this in AS3?

      Thanks,
      Cliff