From: Benoit M. <mar...@ma...> - 2003-04-01 23:34:48
|
See coments below On Tuesday, April 1, 2003, at 03:08 PM, Raymond Irving wrote: > > By default 0 is value used for x,y whenever they are > set to null. > > One way to get relative position is to use > setAnchor(). See > dynapi.api.dynlayer-anchor-anchoring.html for some > information. > > The other thing is to create a setPosition() function > that will allow a user to set the position of the > layer inside the document. Or we could simple cause > the DynLayer to not set left/top values if x/y is > null. > > Options: > --------- > 1) Create a setPosition() function I've needed to have DynLayers with a postion set to Fixed in dynapi2, so this would solve it. Netscape 4 doesn't support it, but we could simulate it by listening to onscroll to maintain the position. > 2) Cause DynLayer to not set left/top values if x/y is > null - results to a relative layer. If you were to call setPosition('relative'), then it wouldn't be needed to try to guess what top/left should be, whatever x/y would be. Benoit > > Which option is more suited for this kind of > functionality? > > > -- > Raymond Irving > > --- Kevin <ke...@ke...> wrote: >> Hello everyone, >> >> I may have lost the plot. But I thought if you >> specified a DynLayer with >> x=null,y=null it was given a "position:relative" in >> the layer/div inline style? >> This may have been something dropped from dynapi2. >> >> I was hoping to do: >> <body> >> <h1>Heading A</h1> >> Some html. >> <script> dynapi.document.insertChikl(a) </script> >> <h2>Heading B</h2> >> Some more html. >> <script> dynapi.document.insertChikl(b) </script> >> Lots more html. >> </body> >> >> Children a and b would be relative positioned >> containers with their own >> absolute positioned DynLayer children and so >> constructing a widget. >> Then these widgets/components would flow normally in >> the page. >> >> Is this possible. Or does everything have to be >> absolutely positioned on >> a page and so no real inline html? Any help with the >> correct usage of >> dynapi3x within an html page would be appreciated. >> >> - >> Kevin. >> >> >> >> >> > ------------------------------------------------------- >> This SF.net email is sponsored by: ValueWeb: >> Dedicated Hosting for just $79/mo with 500 GB of >> bandwidth! >> No other company gives more support or power for >> your dedicated server >> > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ >> _______________________________________________ >> Dynapi-Dev mailing list >> Dyn...@li... >> > http://www.mail-archive.com/dyn...@li.../ > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Tax Center - File online, calculators, forms, and more > http://platinum.yahoo.com > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://www.mail-archive.com/dyn...@li.../ > |