All right :),

http://github.com/sstephenson/prototype/tree/master/src/dom.js#L578

As you can see there is a bit of code in the git core that I think
should really be examined and cleaned up or commented.

//Why do we do this?
    var offsets = element.positionedOffset(),
     top = element._originalTop - offsets.top,
     left = element._originalLeft - offsets.left;

//Why does this work with this in????
    var isAuto = /^(auto|)$/;
    if (!isAuto.test(element.style.top)) top += element._originalTop;
    if (!isAuto.test(element.style.left)) left +=
element._originalLeft;

//Without it unit some dom_tests (unit tests) fail.

Any ideas or insight would be great.
- JDD
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to