[dojo-contributors] DnD constarined move: testers wanted!
eugene at lazutkin.com
Thu Jun 7 14:13:49 EDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the dojo-contributors