On Jun 1, 2006, at 12:17 PM, Arnar Birgisson wrote:
> Hi there,
>
> On 6/1/06, Bob Ippolito <[EMAIL PROTECTED]> wrote:
>> You misread the docs. It definitely doesn't say you can pass
>> coordinates as the *first* argument.
>
> Uhm, this is from the docs:
>
> elementPosition(element[, relativeTo={x: 0, y: 0}]):
> element may be specified as a string to be looked up with getElement,
> a DOM element, --->or trivially as an object with x and/or y
> properties.<--
> relativeTo may be specified as a string to be looked up with
> getElement, a DOM element, or trivially as an object with x and/or y
> properties.
>
> Seems to me both arguments can be "coordinates" (by that I mean an
> object with x and y properties)
Ah. That part of the documentation was written before it supported a
relativeTo argument, and it was intended for trivial passthrough
(like getElement will return what you give it if you pass in a DOM
node). In other words, you can't currently use it that way.
If you create a ticket for this issue at http://trac.mochikit.com/
then it'll definitely be fixed by 1.4, and you'll get a notification
when the ticket status changes.
-bob
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~----------~----~----~----~------~----~------~--~---