Mochikit 1.4 revision 1176.
According to the documentation setElementPosition sets the absolute
position of element in the document from an object with x and y
properties. But this isn't what my code is doing.
According to my code, setElementPosition moves the position of the
element by the xy values provided.
For an onclick event, the following code will double both the x and y
positions.
this.xy = elementPosition($(this.id));
log ("pre position" + this.xy.x + "," + this.xy.y);
setElementPosition($(this.id),this.xy);
this.xy = elementPosition($(this.id));
log ("post position" + this.xy.x + "," + this.xy.y);
If I passed the {x:0,y:0} to the setElementPosition, it worked correctly
and the div didn't move.
-Steve
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---