From: Doug M. <do...@cr...> - 2003-03-28 06:47:31
|
a point.. it seems that you must define the size of a layer before you = set it's anchor, unless you intend to set all 4 dimension in the anchor.. can this be = fixed somehow? And once the anchor is set, even if you did not define it left (for = instance) you can not resize thelayer.. It would be nice I I could anchor a layer to the top+right of it's = parent, but still be able to change it's width or hight afterwards. |
From: Raymond I. <xw...@ya...> - 2003-03-28 15:13:32
|
--- Doug Melvin <do...@cr...> wrote: > a point.. it seems that you must define the size of > a layer before you set it's anchor, > unless you intend to set all 4 dimension in the > anchor.. can this be fixed somehow? Please send me a working example of the above and I'll take a look at it. > And once the anchor is set, even if you did not > define it left (for instance) you can not resize > thelayer.. > > It would be nice I I could anchor a layer to the > top+right of it's parent, but still be able to > change it's width or hight > afterwards. That should be possible with setAnchor({top:0,right:0}). You should then be able to change the width and height without any problem at all. If you can't change the width/height after setting the anchor then send me a working example so I can take a look at it -- Raymond Irving __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com |
From: Doug M. <do...@cr...> - 2003-03-29 02:17:47
Attachments:
anchor-issue.zip
|
In creating the attached example I discovered the following: The width of the button is being changed, but the anchor parameters are not being utilized after the size change. When you click the link to change to width to 1 pixel you will notice that the button is set to a width of 1, but the button's left position is not changed.. Meaning, that the parameter of right:0 is no longer honored You can see the same when you set the height of the layer, the layer's x potion doe snot change, therfore not honering the bottom:0 parameter. As the only parameters passed to setAnchor (in this case) are right:0,bottom:0 one would dexpect that after changing the size, that the layer would be re-anchored to right:0,bottom:0 On other words, the anchors work great, until you change the size of the layer, at which point the anchors are no longer honored.. ----- Original Message ----- From: "Raymond Irving" <xw...@ya...> To: "Doug Melvin" <do...@cr...>; <dyn...@li...> Sent: Friday, March 28, 2003 7:13 AM Subject: Re: [Dynapi-Dev] anchors: > > --- Doug Melvin <do...@cr...> wrote: > > a point.. it seems that you must define the size of > > a layer before you set it's anchor, > > unless you intend to set all 4 dimension in the > > anchor.. can this be fixed somehow? > > Please send me a working example of the above and I'll > take a look at it. > > > And once the anchor is set, even if you did not > > define it left (for instance) you can not resize > > thelayer.. > > > > It would be nice I I could anchor a layer to the > > top+right of it's parent, but still be able to > > change it's width or hight > > afterwards. > > That should be possible with > setAnchor({top:0,right:0}). You should then be able to > change the width and height without any problem at > all. If you can't change the width/height after > setting the anchor then send me a working example so I > can take a look at it > > -- > Raymond Irving > > __________________________________________________ > Do you Yahoo!? > Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! > http://platinum.yahoo.com > > > ------------------------------------------------------- > This SF.net email is sponsored by: > The Definitive IT and Networking Event. Be There! > NetWorld+Interop Las Vegas 2003 -- Register today! > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://www.mail-archive.com/dyn...@li.../ > |
From: Raymond I. <xw...@ya...> - 2003-03-30 17:20:53
|
I've uploaded the fix to the cvs. Please checkout the files to see if it's working ok. Thanks again for the example. -- Raymond Irving --- Doug Melvin <do...@cr...> wrote: > In creating the attached example I discovered the > following: > The width of the button is being changed, but the > anchor parameters are not > being utilized after the size change. > > When you click the link to change to width to 1 > pixel you will notice that > the button is set to a width of 1, but the button's > left position is not > changed.. > Meaning, that the parameter of right:0 is no longer > honored > > You can see the same when you set the height of the > layer, the layer's x > potion doe snot change, > therfore not honering the bottom:0 parameter. > > As the only parameters passed to setAnchor (in this > case) are > right:0,bottom:0 > one would dexpect that after changing the size, that > the layer would be > re-anchored to > right:0,bottom:0 > > On other words, the anchors work great, until you > change the size of the > layer, > at which point the anchors are no longer honored.. > > ----- Original Message ----- > From: "Raymond Irving" <xw...@ya...> > To: "Doug Melvin" <do...@cr...>; > <dyn...@li...> > Sent: Friday, March 28, 2003 7:13 AM > Subject: Re: [Dynapi-Dev] anchors: > > > > > > --- Doug Melvin <do...@cr...> > wrote: > > > a point.. it seems that you must define the size > of > > > a layer before you set it's anchor, > > > unless you intend to set all 4 dimension in the > > > anchor.. can this be fixed somehow? > > > > Please send me a working example of the above and > I'll > > take a look at it. > > > > > And once the anchor is set, even if you did not > > > define it left (for instance) you can not resize > > > thelayer.. > > > > > > It would be nice I I could anchor a layer to the > > > top+right of it's parent, but still be able to > > > change it's width or hight > > > afterwards. > > > > That should be possible with > > setAnchor({top:0,right:0}). You should then be > able to > > change the width and height without any problem at > > all. If you can't change the width/height after > > setting the anchor then send me a working example > so I > > can take a look at it > > > > -- > > Raymond Irving > > > > __________________________________________________ > > Do you Yahoo!? > > Yahoo! Platinum - Watch CBS' NCAA March Madness, > live on your desktop! > > http://platinum.yahoo.com > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: > > The Definitive IT and Networking Event. Be There! > > NetWorld+Interop Las Vegas 2003 -- Register today! > > > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en > > _______________________________________________ > > Dynapi-Dev mailing list > > Dyn...@li... > > > http://www.mail-archive.com/dyn...@li.../ > > > > ATTACHMENT part 2 application/x-compressed name=anchor-issue.zip __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com |
From: Doug M. <do...@cr...> - 2003-04-01 06:03:12
|
Beauty!!! Check out the attached example boys and girls(?) ----- Original Message ----- From: "Raymond Irving" <xw...@ya...> To: <dyn...@li...> Sent: Sunday, March 30, 2003 9:20 AM Subject: Re: [Dynapi-Dev] anchors: > > I've uploaded the fix to the cvs. Please checkout the > files to see if it's working ok. Thanks again for the > example. > > -- > Raymond Irving > > --- Doug Melvin <do...@cr...> wrote: > > In creating the attached example I discovered the > > following: > > The width of the button is being changed, but the > > anchor parameters are not > > being utilized after the size change. > > > > When you click the link to change to width to 1 > > pixel you will notice that > > the button is set to a width of 1, but the button's > > left position is not > > changed.. > > Meaning, that the parameter of right:0 is no longer > > honored > > > > You can see the same when you set the height of the > > layer, the layer's x > > potion doe snot change, > > therfore not honering the bottom:0 parameter. > > > > As the only parameters passed to setAnchor (in this > > case) are > > right:0,bottom:0 > > one would dexpect that after changing the size, that > > the layer would be > > re-anchored to > > right:0,bottom:0 > > > > On other words, the anchors work great, until you > > change the size of the > > layer, > > at which point the anchors are no longer honored.. > > > > ----- Original Message ----- > > From: "Raymond Irving" <xw...@ya...> > > To: "Doug Melvin" <do...@cr...>; > > <dyn...@li...> > > Sent: Friday, March 28, 2003 7:13 AM > > Subject: Re: [Dynapi-Dev] anchors: > > > > > > > > > > --- Doug Melvin <do...@cr...> > > wrote: > > > > a point.. it seems that you must define the size > > of > > > > a layer before you set it's anchor, > > > > unless you intend to set all 4 dimension in the > > > > anchor.. can this be fixed somehow? > > > > > > Please send me a working example of the above and > > I'll > > > take a look at it. > > > > > > > And once the anchor is set, even if you did not > > > > define it left (for instance) you can not resize > > > > thelayer.. > > > > > > > > It would be nice I I could anchor a layer to the > > > > top+right of it's parent, but still be able to > > > > change it's width or hight > > > > afterwards. > > > > > > That should be possible with > > > setAnchor({top:0,right:0}). You should then be > > able to > > > change the width and height without any problem at > > > all. If you can't change the width/height after > > > setting the anchor then send me a working example > > so I > > > can take a look at it > > > > > > -- > > > Raymond Irving > > > > > > __________________________________________________ > > > Do you Yahoo!? > > > Yahoo! Platinum - Watch CBS' NCAA March Madness, > > live on your desktop! > > > http://platinum.yahoo.com > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: > > > The Definitive IT and Networking Event. Be There! > > > NetWorld+Interop Las Vegas 2003 -- Register today! > > > > > > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en > > > _______________________________________________ > > > Dynapi-Dev mailing list > > > Dyn...@li... > > > > > > http://www.mail-archive.com/dyn...@li.../ > > > > > > > > ATTACHMENT part 2 application/x-compressed > name=anchor-issue.zip > > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! > http://platinum.yahoo.com > > > ------------------------------------------------------- > This SF.net email is sponsored by: > The Definitive IT and Networking Event. Be There! > NetWorld+Interop Las Vegas 2003 -- Register today! > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://www.mail-archive.com/dyn...@li.../ > |
From: Doug M. <do...@cr...> - 2003-04-01 06:09:16
Attachments:
anchor-issue.html
|
And for my next trick.. :-) ----- Original Message ----- From: "Doug Melvin" <do...@cr...> To: <dyn...@li...> Sent: Tuesday, April 01, 2003 1:06 AM Subject: Re: [Dynapi-Dev] anchors: > Beauty!!! > > Check out the attached example boys and girls(?) > > ----- Original Message ----- > From: "Raymond Irving" <xw...@ya...> > To: <dyn...@li...> > Sent: Sunday, March 30, 2003 9:20 AM > Subject: Re: [Dynapi-Dev] anchors: > > > > > > I've uploaded the fix to the cvs. Please checkout the > > files to see if it's working ok. Thanks again for the > > example. > > > > -- > > Raymond Irving > > > > --- Doug Melvin <do...@cr...> wrote: > > > In creating the attached example I discovered the > > > following: > > > The width of the button is being changed, but the > > > anchor parameters are not > > > being utilized after the size change. > > > > > > When you click the link to change to width to 1 > > > pixel you will notice that > > > the button is set to a width of 1, but the button's > > > left position is not > > > changed.. > > > Meaning, that the parameter of right:0 is no longer > > > honored > > > > > > You can see the same when you set the height of the > > > layer, the layer's x > > > potion doe snot change, > > > therfore not honering the bottom:0 parameter. > > > > > > As the only parameters passed to setAnchor (in this > > > case) are > > > right:0,bottom:0 > > > one would dexpect that after changing the size, that > > > the layer would be > > > re-anchored to > > > right:0,bottom:0 > > > > > > On other words, the anchors work great, until you > > > change the size of the > > > layer, > > > at which point the anchors are no longer honored.. > > > > > > ----- Original Message ----- > > > From: "Raymond Irving" <xw...@ya...> > > > To: "Doug Melvin" <do...@cr...>; > > > <dyn...@li...> > > > Sent: Friday, March 28, 2003 7:13 AM > > > Subject: Re: [Dynapi-Dev] anchors: > > > > > > > > > > > > > > --- Doug Melvin <do...@cr...> > > > wrote: > > > > > a point.. it seems that you must define the size > > > of > > > > > a layer before you set it's anchor, > > > > > unless you intend to set all 4 dimension in the > > > > > anchor.. can this be fixed somehow? > > > > > > > > Please send me a working example of the above and > > > I'll > > > > take a look at it. > > > > > > > > > And once the anchor is set, even if you did not > > > > > define it left (for instance) you can not resize > > > > > thelayer.. > > > > > > > > > > It would be nice I I could anchor a layer to the > > > > > top+right of it's parent, but still be able to > > > > > change it's width or hight > > > > > afterwards. > > > > > > > > That should be possible with > > > > setAnchor({top:0,right:0}). You should then be > > > able to > > > > change the width and height without any problem at > > > > all. If you can't change the width/height after > > > > setting the anchor then send me a working example > > > so I > > > > can take a look at it > > > > > > > > -- > > > > Raymond Irving > > > > > > > > __________________________________________________ > > > > Do you Yahoo!? > > > > Yahoo! Platinum - Watch CBS' NCAA March Madness, > > > live on your desktop! > > > > http://platinum.yahoo.com > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.net email is sponsored by: > > > > The Definitive IT and Networking Event. Be There! > > > > NetWorld+Interop Las Vegas 2003 -- Register today! > > > > > > > > > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en > > > > _______________________________________________ > > > > Dynapi-Dev mailing list > > > > Dyn...@li... > > > > > > > > > http://www.mail-archive.com/dyn...@li.../ > > > > > > > > > > > > ATTACHMENT part 2 application/x-compressed > > name=anchor-issue.zip > > > > > > > > __________________________________________________ > > Do you Yahoo!? > > Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! > > http://platinum.yahoo.com > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: > > The Definitive IT and Networking Event. Be There! > > NetWorld+Interop Las Vegas 2003 -- Register today! > > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en > > _______________________________________________ > > Dynapi-Dev mailing list > > Dyn...@li... > > http://www.mail-archive.com/dyn...@li.../ > > > > > ------------------------------------------------------- > 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.../ > |
From: Raymond I. <xw...@ya...> - 2003-04-01 14:12:46
|
Cool. I think I'll add this to the examples section. Agree? -- Raymond Irving --- Doug Melvin <do...@cr...> wrote: > And for my next trick.. > > :-) > > > ----- Original Message ----- > From: "Doug Melvin" <do...@cr...> > To: <dyn...@li...> > Sent: Tuesday, April 01, 2003 1:06 AM > Subject: Re: [Dynapi-Dev] anchors: > > > > Beauty!!! > > > > Check out the attached example boys and girls(?) > > > > ----- Original Message ----- > > From: "Raymond Irving" <xw...@ya...> > > To: <dyn...@li...> > > Sent: Sunday, March 30, 2003 9:20 AM > > Subject: Re: [Dynapi-Dev] anchors: > > > > > > > > > > I've uploaded the fix to the cvs. Please > checkout the > > > files to see if it's working ok. Thanks again > for the > > > example. > > > > > > -- > > > Raymond Irving > > > > > > --- Doug Melvin <do...@cr...> > wrote: > > > > In creating the attached example I discovered > the > > > > following: > > > > The width of the button is being changed, but > the > > > > anchor parameters are not > > > > being utilized after the size change. > > > > > > > > When you click the link to change to width to > 1 > > > > pixel you will notice that > > > > the button is set to a width of 1, but the > button's > > > > left position is not > > > > changed.. > > > > Meaning, that the parameter of right:0 is no > longer > > > > honored > > > > > > > > You can see the same when you set the height > of the > > > > layer, the layer's x > > > > potion doe snot change, > > > > therfore not honering the bottom:0 parameter. > > > > > > > > As the only parameters passed to setAnchor (in > this > > > > case) are > > > > right:0,bottom:0 > > > > one would dexpect that after changing the > size, that > > > > the layer would be > > > > re-anchored to > > > > right:0,bottom:0 > > > > > > > > On other words, the anchors work great, until > you > > > > change the size of the > > > > layer, > > > > at which point the anchors are no longer > honored.. > > > > > > > > ----- Original Message ----- > > > > From: "Raymond Irving" <xw...@ya...> > > > > To: "Doug Melvin" > <do...@cr...>; > > > > <dyn...@li...> > > > > Sent: Friday, March 28, 2003 7:13 AM > > > > Subject: Re: [Dynapi-Dev] anchors: > > > > > > > > > > > > > > > > > > --- Doug Melvin <do...@cr...> > > > > wrote: > > > > > > a point.. it seems that you must define > the size > > > > of > > > > > > a layer before you set it's anchor, > > > > > > unless you intend to set all 4 dimension > in the > > > > > > anchor.. can this be fixed somehow? > > > > > > > > > > Please send me a working example of the > above and > > > > I'll > > > > > take a look at it. > > > > > > > > > > > And once the anchor is set, even if you > did not > > > > > > define it left (for instance) you can not > resize > > > > > > thelayer.. > > > > > > > > > > > > It would be nice I I could anchor a layer > to the > > > > > > top+right of it's parent, but still be > able to > > > > > > change it's width or hight > > > > > > afterwards. > > > > > > > > > > That should be possible with > > > > > setAnchor({top:0,right:0}). You should then > be > > > > able to > > > > > change the width and height without any > problem at > > > > > all. If you can't change the width/height > after > > > > > setting the anchor then send me a working > example > > > > so I > > > > > can take a look at it > > > > > > > > > > -- > > > > > Raymond Irving > > > > > > > > > > > __________________________________________________ > > > > > Do you Yahoo!? > > > > > Yahoo! Platinum - Watch CBS' NCAA March > Madness, > > > > live on your desktop! > > > > > http://platinum.yahoo.com > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > This SF.net email is sponsored by: > > > > > The Definitive IT and Networking Event. Be > There! > > > > > NetWorld+Interop Las Vegas 2003 -- Register > today! > > > > > > > > > > > > > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en > > > > > > _______________________________________________ > > > > > Dynapi-Dev mailing list > > > > > Dyn...@li... > > > > > > > > > > > > > http://www.mail-archive.com/dyn...@li.../ > > > > > > > > > > > > > > > > ATTACHMENT part 2 application/x-compressed > > > name=anchor-issue.zip > > > > > > > > > > > > > __________________________________________________ > > > Do you Yahoo!? > > > Yahoo! Platinum - Watch CBS' NCAA March Madness, > live on your desktop! > > > http://platinum.yahoo.com > > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: > > > The Definitive IT and Networking Event. Be > There! > > > NetWorld+Interop Las Vegas 2003 -- Register > today! > > > > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en > > > _______________________________________________ > > > Dynapi-Dev mailing list > > > Dyn...@li... > > > > http://www.mail-archive.com/dyn...@li.../ > > > > > > > > > > ------------------------------------------------------- > > 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 > === message truncated === --------------------------------- DynAPI - DynLayer Create/Remove/Deletedynapi.library.setPath('./src/');dynapi.library.include('dynapi.api'); var parentLayer = dynapi.document.addChild(new DynLayer(null,10,10,50,50,'#999999')); var greenLayer = parentLayer.addChild(new DynLayer(null,0,0,8,8,'green')); greenLayer.setAnchor({right:0,bottom:0}); var redLayer = parentLayer.addChild(new DynLayer(null,0,0,8,8,'red')); redLayer.setAnchor({top:0,left:0}); var blueLayer = parentLayer.addChild(new DynLayer(null,0,0,8,8,'blue')); blueLayer.setAnchor({top:0,right:0}); var yellowLayer = parentLayer.addChild(new DynLayer(null,0,0,8,8,'yellow')); yellowLayer.setAnchor({bottom:0,left:0});dynapi.document.addChild(parentLayer); Green Layer set the green layer's width to 16 set the green layer's width to 8 set the green layer's width to 1 set the green layer's height to 16 set the green layer's height to 8 set the green layer's height to 1 Red Layer set the red layer's width to 16 set the red layer's width to 8 set the red layer's width to 1 set the red layer's height to 16 set the red layer's height to 8 set the red layer's height to 1 Blue Layer set the blue layer's width to 16 set the blue layer's width to 8 set the blue layer's width to 1 set the blue layer's height to 16 set the blue layer's height to 8 set the blue layer's height to 1 Yellow Layer set the yellow layer's width to 16 set the yellow layer's width to 8 set the yellow layer's width to 1 set the yellow layer's height to 16 set the yellow layer's height to 8 set the yellow layer's height to 1 dynapi.document.insertAllChildren(); __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://platinum.yahoo.com |
From: Doug M. <do...@cr...> - 2003-04-01 17:57:16
|
Agree. :-) ----- Original Message ----- From: "Raymond Irving" <xw...@ya...> To: <dyn...@li...> Sent: Tuesday, April 01, 2003 9:12 AM Subject: Re: [Dynapi-Dev] anchors: > > Cool. I think I'll add this to the examples section. > Agree? > > -- > Raymond Irving > > --- Doug Melvin <do...@cr...> wrote: > > And for my next trick.. > > > > :-) > > > > > > ----- Original Message ----- > > From: "Doug Melvin" <do...@cr...> > > To: <dyn...@li...> > > Sent: Tuesday, April 01, 2003 1:06 AM > > Subject: Re: [Dynapi-Dev] anchors: > > > > > > > Beauty!!! > > > > > > Check out the attached example boys and girls(?) > > > > > > ----- Original Message ----- > > > From: "Raymond Irving" <xw...@ya...> > > > To: <dyn...@li...> > > > Sent: Sunday, March 30, 2003 9:20 AM > > > Subject: Re: [Dynapi-Dev] anchors: > > > > > > > > > > > > > > I've uploaded the fix to the cvs. Please > > checkout the > > > > files to see if it's working ok. Thanks again > > for the > > > > example. > > > > > > > > -- > > > > Raymond Irving > > > > > > > > --- Doug Melvin <do...@cr...> > > wrote: > > > > > In creating the attached example I discovered > > the > > > > > following: > > > > > The width of the button is being changed, but > > the > > > > > anchor parameters are not > > > > > being utilized after the size change. > > > > > > > > > > When you click the link to change to width to > > 1 > > > > > pixel you will notice that > > > > > the button is set to a width of 1, but the > > button's > > > > > left position is not > > > > > changed.. > > > > > Meaning, that the parameter of right:0 is no > > longer > > > > > honored > > > > > > > > > > You can see the same when you set the height > > of the > > > > > layer, the layer's x > > > > > potion doe snot change, > > > > > therfore not honering the bottom:0 parameter. > > > > > > > > > > As the only parameters passed to setAnchor (in > > this > > > > > case) are > > > > > right:0,bottom:0 > > > > > one would dexpect that after changing the > > size, that > > > > > the layer would be > > > > > re-anchored to > > > > > right:0,bottom:0 > > > > > > > > > > On other words, the anchors work great, until > > you > > > > > change the size of the > > > > > layer, > > > > > at which point the anchors are no longer > > honored.. > > > > > > > > > > ----- Original Message ----- > > > > > From: "Raymond Irving" <xw...@ya...> > > > > > To: "Doug Melvin" > > <do...@cr...>; > > > > > <dyn...@li...> > > > > > Sent: Friday, March 28, 2003 7:13 AM > > > > > Subject: Re: [Dynapi-Dev] anchors: > > > > > > > > > > > > > > > > > > > > > > --- Doug Melvin <do...@cr...> > > > > > wrote: > > > > > > > a point.. it seems that you must define > > the size > > > > > of > > > > > > > a layer before you set it's anchor, > > > > > > > unless you intend to set all 4 dimension > > in the > > > > > > > anchor.. can this be fixed somehow? > > > > > > > > > > > > Please send me a working example of the > > above and > > > > > I'll > > > > > > take a look at it. > > > > > > > > > > > > > And once the anchor is set, even if you > > did not > > > > > > > define it left (for instance) you can not > > resize > > > > > > > thelayer.. > > > > > > > > > > > > > > It would be nice I I could anchor a layer > > to the > > > > > > > top+right of it's parent, but still be > > able to > > > > > > > change it's width or hight > > > > > > > afterwards. > > > > > > > > > > > > That should be possible with > > > > > > setAnchor({top:0,right:0}). You should then > > be > > > > > able to > > > > > > change the width and height without any > > problem at > > > > > > all. If you can't change the width/height > > after > > > > > > setting the anchor then send me a working > > example > > > > > so I > > > > > > can take a look at it > > > > > > > > > > > > -- > > > > > > Raymond Irving > > > > > > > > > > > > > > __________________________________________________ > > > > > > Do you Yahoo!? > > > > > > Yahoo! Platinum - Watch CBS' NCAA March > > Madness, > > > > > live on your desktop! > > > > > > http://platinum.yahoo.com > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > This SF.net email is sponsored by: > > > > > > The Definitive IT and Networking Event. Be > > There! > > > > > > NetWorld+Interop Las Vegas 2003 -- Register > > today! > > > > > > > > > > > > > > > > > > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en > > > > > > > > _______________________________________________ > > > > > > Dynapi-Dev mailing list > > > > > > Dyn...@li... > > > > > > > > > > > > > > > > > > http://www.mail-archive.com/dyn...@li.../ > > > > > > > > > > > > > > > > > > > > ATTACHMENT part 2 application/x-compressed > > > > name=anchor-issue.zip > > > > > > > > > > > > > > > > > > __________________________________________________ > > > > Do you Yahoo!? > > > > Yahoo! Platinum - Watch CBS' NCAA March Madness, > > live on your desktop! > > > > http://platinum.yahoo.com > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.net email is sponsored by: > > > > The Definitive IT and Networking Event. Be > > There! > > > > NetWorld+Interop Las Vegas 2003 -- Register > > today! > > > > > > > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en > > > > _______________________________________________ > > > > Dynapi-Dev mailing list > > > > Dyn...@li... > > > > > > > http://www.mail-archive.com/dyn...@li.../ > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > 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 > > > === message truncated === > --------------------------------- > DynAPI - DynLayer > Create/Remove/Deletedynapi.library.setPath('./src/');dynapi.library.include( 'dynapi.api'); > var parentLayer = dynapi.document.addChild(new > DynLayer(null,10,10,50,50,'#999999')); var greenLayer > = parentLayer.addChild(new > DynLayer(null,0,0,8,8,'green')); > greenLayer.setAnchor({right:0,bottom:0}); var redLayer > = parentLayer.addChild(new > DynLayer(null,0,0,8,8,'red')); > redLayer.setAnchor({top:0,left:0}); var blueLayer = > parentLayer.addChild(new > DynLayer(null,0,0,8,8,'blue')); > blueLayer.setAnchor({top:0,right:0}); var yellowLayer > = parentLayer.addChild(new > DynLayer(null,0,0,8,8,'yellow')); > yellowLayer.setAnchor({bottom:0,left:0});dynapi.document.addChild(parentLaye r); > > Green Layer > set the green layer's width to 16 > set the green layer's width to 8 > set the green layer's width to 1 > set the green layer's height to 16 > set the green layer's height to 8 > set the green layer's height to 1 Red Layer > set the red layer's width to 16 > set the red layer's width to 8 > set the red layer's width to 1 > set the red layer's height to 16 > set the red layer's height to 8 > set the red layer's height to 1 Blue > Layer > set the blue layer's width to 16 > set the blue layer's width to 8 > set the blue layer's width to 1 > set the blue layer's height to 16 > set the blue layer's height to 8 > set the blue layer's height to 1 Yellow Layer > > set the yellow layer's width to 16 > set the yellow layer's width to 8 > set the yellow layer's width to 1 > set the yellow layer's height to 16 > set the yellow layer's height to 8 > set the yellow layer's height to 1 > > > > > > > dynapi.document.insertAllChildren(); > > > __________________________________________________ > 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.../ > |