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" <[EMAIL PROTECTED]>
To: "Doug Melvin" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, March 28, 2003 7:13 AM
Subject: Re: [Dynapi-Dev] anchors:


>
> --- Doug Melvin <[EMAIL PROTECTED]> 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
> [EMAIL PROTECTED]
> http://www.mail-archive.com/[EMAIL PROTECTED]/
>

Attachment: anchor-issue.zip
Description: application/compressed

Reply via email to