2 Replies Latest reply on Jul 28, 2009 10:23 PM by kris456

    Stopping the Divider of HdividedBox

    kris456 Level 1

      I have a HdividedBox with 2 Panels on both Side. The divider between the two works fine. But I want to stop dragging when width of the first panel reaches 15. Can this be done? Please Help...

        • 1. Re: Stopping the Divider of HdividedBox
          Gregory Lafrance Level 6

          minWidth="15"

           

          <?xml version="1.0" encoding="utf-8"?>
          <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
            <mx:HDividedBox minWidth="15" width="100%" height="100%">
              <mx:VBox width="50%" height="100%"/>
              <mx:VBox width="50%" height="100%"/>
            </mx:HDividedBox>
          </mx:Application>

           

          If this post answers your question or helps, please mark it as such.

          1 person found this helpful
          • 2. Re: Stopping the Divider of HdividedBox
            kris456 Level 1

            Thanks for the reply.

            actually the minwidth is to be set for the children of HdividedBox not the box itself.

             

            So solution is

             

            <?xml version="1.0" encoding="utf-8"?>
            <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
              <mx:HDividedBox width="100%" height="100%">
                <mx:VBox width="50%" height="100%" minWidth="15"/>
                <mx:VBox width="50%" height="100%"/>
              </mx:HDividedBox>
            </mx:Application>