[dojo-contributors] DnD constarined move: testers wanted!

Eugene Lazutkin eugene at lazutkin.com
Thu Jun 7 14:13:49 EDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Patrick Corcoran wrote:
> 
> One suggestion/question?  What if you changed the semantics of the
> second argument?  Instead of moving based upon the top-left corner, you
> move based upon the center of the object?  Then you could dispense with
> the second argument altogether, because people could just use
> margin/border/padding settings to keep the movable within the container?

Actually it doesn't really matter which point of the element to use.
Selecting the top-left point just simplified the math. I added the
"within" argument, because it is such a common case. The other option I
considered was to remove it completely, and assume that it is always
true, but decided against it.

Thanks,

Eugene
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGaErdY214tZwSfCsRAnMAAKCBiOtpwwjZml9lm366JcIuI61/6wCgzFln
qRyQ/hZ5Z05q4bXbQ5VXNSk=
=7BIO
-----END PGP SIGNATURE-----



More information about the dojo-contributors mailing list