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 2) Cause DynLayer to not set left/top values if x/y is null - results to a relative layer. Which option is more suited for this kind of functionality? -- Raymond Irving --- Kevin <[EMAIL PROTECTED]> 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 > [EMAIL PROTECTED] > http://www.mail-archive.com/[EMAIL PROTECTED]/ __________________________________________________ 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 [EMAIL PROTECTED] http://www.mail-archive.com/[EMAIL PROTECTED]/