I had a problem cloning position with prototype 1.4 and 1.6 in ie8
don't know exactly why it behaves like this.. but that's my solution:
hope it could be useful:

In 1.4  I changed this

if (Element.getStyle(target,'position') == 'absolute') {
      parent = Position.offsetParent(target);
      delta = Position.page(parent);
}

with this:

if (Element.getStyle(target,'position') == 'absolute') {
      parent = Position.offsetParent(target);
      delta =  (navigator.appVersion.indexOf('MSIE 8')>0)?Position.page
(source):Position.page(parent);
}

if (navigator.appVersion.indexOf('MSIE 8')>0){
        delta[0]-=source.offsetLeft;
        delta[1]-=source.offsetTop;
}


the solution is identical for 1.6 but instead of Position.page(parent)
I used page.viewportOffset() as it was

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to