From: Jack C. <jac...@ne...> - 2003-07-09 01:47:18
|
Is it true that a layer cannot be dragged outside of its parent? 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 <jac...@ne...> http://www.PerceptiveCorner.com/ On Tue, 08 Jul 2003 12:42:12 -0400 Jack Chung <jac...@ne...> 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 <jac...@ne...> > http://www.PerceptiveCorner.com/ > > > On Mon, 07 Jul 2003 22:11:48 -0400 > Jack Chung <jac...@ne...> 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 > > Dyn...@li... > > 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 > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help |