--- Jack Chung <[EMAIL PROTECTED]> wrote:
> Yeah, I gave up and changed to use all absolute
> positioning.
> Wrote a function to do the rearranging of squares. 
> Everything works
> well now! :)
> http://www.perceptivecorner.com/layer2.html
> 

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.


--
Raymond Irving

> -- 
> Jack Chung <[EMAIL PROTECTED]>
> http://www.PerceptiveCorner.com/
> 
> 
> On Tue, 8 Jul 2003 20:29:34 -0700 (PDT)
> Raymond Irving <[EMAIL PROTECTED]> wrote:
> 
> > 
> > --- Jack Chung <[EMAIL PROTECTED]> wrote:
> > > Is it true that a layer cannot be dragged
> outside of
> > > its parent?
> > 
> > Yes. Layers "can not" be dragged outside of their
> > parents. You might have to use another technique.
> > 
> > See the GroupManager example for a hint.
> > 
> > 
> > --
> > Raymond Irving
> > 
> > > The small squares on my test page cannot be
> dragged
> > > outside of its
> > > parent no matter what I do, even when not using
> > > setDragBoundary.
> > > It can go past the parent's border, but will not
> be
> > > shown on top of
> > > other layers once outside of the parent.  I have
> set
> > > the square's
> > > z-index to very high already.
> > > 
> > > -- 
> > > Jack Chung <[EMAIL PROTECTED]>
> > > http://www.PerceptiveCorner.com/
> > > 
> > > 
> > > On Tue, 08 Jul 2003 12:42:12 -0400
> > > Jack Chung <[EMAIL PROTECTED]> wrote:
> > > 
> > > > Just realized something, if the first time I
> use
> > > setDragBoundary on a
> > > > layer and I do not provide the 4 dimension
> > > parameters, then I won't be
> > > > able to change the boundary later on.
> > > > However, if I give the dimension paramters the
> > > first time I call
> > > > setDragBoundary, i can always change the
> boundary
> > > by calling it again
> > > > with different parameters.
> > > > But now I need to menually calculate the
> > > parameters for each layer,
> > > > since it is relative to the layers, not to the
> > > screen. (or is there a
> > > > way to set boundary relative to whole page??)
> > > > 
> > > > -- 
> > > > Jack Chung <[EMAIL PROTECTED]>
> > > > http://www.PerceptiveCorner.com/
> > > > 
> > > > 
> > > > On Mon, 07 Jul 2003 22:11:48 -0400
> > > > Jack Chung <[EMAIL PROTECTED]> wrote:
> > > > 
> > > > > See below...
> > > > > 
> > > > > > The thing to do is to reset the css
> position
> > > and
> > > > > > display propreties whenever you remove the
> > > layer.
> > > > > > 
> > > > > >     big2.addChild(lyr1);
> > > > > > 
> > > > > >     big2.addChild(lyr2);
> > > > > > 
> > > > > >     big2.addChild(lyr3);
> > > > > >     big1.addChild(lyr3);
> > > > > > 
> > > > > >     lyr1.css.display = 'inline';
> > > > > >     lyr1.css.position = 'relative';
> > > > > >     DragEvent.setDragBoundary(lyr1);
> > > > > > 
> > > > > >     lyr2.css.display = 'inline';
> > > > > >     lyr2.css.position = 'relative';
> > > > > >     DragEvent.setDragBoundary(lyr2);
> > > > > > 
> > > > > >     lyr3.css.display = 'inline';
> > > > > >     lyr3.css.position = 'relative';
> > > > > >     DragEvent.setDragBoundary(lyr3);
> > > > > > 
> > > > > > This might however affect the DragBoundary
> as
> > > the
> > > > > > layers are displayed inline with position
> set
> > > to
> > > > > > relative.
> > > > > The display and alignment are perfect now!
> > > > > However, DragBoundary is still incorrect.
> > > > > It seems that no matter what parameters I
> put
> > > into the setDragBoundary
> > > > > function (or not using it at all), the
> boundary
> > > is still the same.
> > > > > All the boundaries are offset to the lower
> > > right.
> > > > > 
> > > > > > 
> > > > > > IMO it's best to use a reflow system to
> > > re-align your
> > > > > > layers inside there parent. I do hope
> someone
> > > will one
> > > > > > day be able to create such a library.
> > > > > If nothing works for me, then I will create
> one.
> > >  However I think
> > > > > letting the browser do the job is more
> efficient
> > > and less likely to
> > > > > cause bugs (or not?).
> > > > > 
> > > > > Jack
> > > > > 
> > > > > 
> > > > > 
> > > > >
> > >
> >
>
-------------------------------------------------------
> > > > > This SF.Net email sponsored by: Free
> pre-built
> > > ASP.NET sites including
> > > > > Data Reports, E-commerce, Portals, and
> Forums
> > > are available now.
> > > > > Download today and enter to win an XBOX or
> > > Visual Studio .NET.
> > > > >
> > >
> >
>
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> > > > >
> _______________________________________________
> > > > > Dynapi-Help mailing list
> > > > > [EMAIL PROTECTED]
> > > > >
> > >
> >
>
https://lists.sourceforge.net/lists/listinfo/dynapi-help
> > > > 
> > > > 
> > > > 
> > > >
> > >
> >
>
-------------------------------------------------------
> > > > 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
> > > 
> > > 
> > > 
> > >
> >
>
-------------------------------------------------------
> > > 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
> 
=== message truncated ===


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com


-------------------------------------------------------
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