1 Reply Latest reply on Jan 18, 2010 4:58 AM by Sebastien V.

    How to restrict VBox width


      I've used minWidth and maxWidth properties but eventually I manage to increase/decrease the size of VBox as much as I want. I want to restrict VBox so that I may not be able to increase/decrease its size out of a particular limit.

        • 1. Re: How to restrict VBox width
          Sebastien V. Level 3

          I don't know how you manage to increase the width above the maxWidth, but I guess you do this programmatically.


          I see two solutions:


          1) Listen to the widthChange event and re-adjust the width when necessary.

          2) Extend the VBox component in a custom class and override the width setter to take into account the maxWidth.