0 Replies Latest reply on Aug 27, 2007 1:29 PM by jfillman

    Resizing Overlapping Dropped Items

    jfillman Level 1
      I have a Canvas where I drag and drop several(no limit) custom TextArea controls. These items can also be moved around within the Canvas and resized vertically via a popup window. What I'm having difficulty solving is how to make the items resized horizontally when dropped, moved, or when the vertical height is changed so that it is overlapping a TextArea control that already exists on the Canvas. The height, left, right, and y position are maintained in an ArrayCollection, so I can see looping when the ArrayCollection is added to and updated as a possibility, just haven't been able to figure this out.

      Code is far too long to post here, so what I'm really looking for some ideas/code samples. In theory, there is no limit to the number of items that overlap partially or completely, although more than 10 would be pointless from a display readibility perspective.