4 Replies Latest reply on Jan 7, 2010 3:04 AM by r3action

    Possible to disable autoPositionning in a Panel when adding a child?

    r3action

      Hi,

       

       

      I'm adding children (buttons) to a Panel by drag n' drop. I put listeners on them to make them draggable into the panel itself.


      While adding a child I'm positionning it with the x and y properties but it's automaticly positionned in the upperleft corner of the Panel. Everytime I'm adding a child, the Panel relocates all his childs.

       

      I have no problem after that to replace them where I want by drag n' drop.

       

      I searched the liveDocs and I found that (correct me if i'm wrong) the autoLayout property set to false, disable autopositionning when a child is resized or moved but it doesn't work when a child is added.

       

      So, i'm wondering if it's possible to disable autoPositionning in a Panel when adding a child?

       

      Thank you for your help