I have changed the function and now it works with any sized layer, and
all layers can be of different sizes!
Check it out!

It's not a problem to add this to the API.  However, it seems to be a
hack'ish way of working around the API's parent-child relationship.
I added a property called "container" to all small squares, which is
used to decide what layers need to be re-positioned when looping over
all layers under dynapi.document.

I did all this for the sake of being able to drag the squares outside of
its parent.  So, basically the API doesn't know the squares are
contained in the big box.  All boxes and squares are at the same
hierarchy level.


> Awesome! Will you be willing to contribute layer
> rearranging code to the API? If so could we call it
> the ReflowManager or the AlignmentManager or some
> other?
> 
> example of its use:
> 
> var a = new AlignmentManager();
> var lyr = new DynLayer();
> lyr.addChild(a); 
> //^ this will align all the child layers inside lyr
> 
> If you can get it to work with even rectangles then
> that would be cool.
> 



-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to