I've altered the prototype page function to 'solve' this issue as
follows:
function getDistance(forElement)
{
var valueT = 0;
var element = forElement;
do
{
valueT += element.offsetTop || 0;
if (element.offsetParent == document.body)
if (Element.getStyle(element,'position')=='absolute')
break; // Safari fix
} while (element = element.offsetParent);
element = forElement;
do valueT -= element.scrollTop || 0; while (element =
element.parentNode);
return valueT - windowoffset;
}
I only needed the y-coordinate. By taking out the !window.opera
condition it worked perfectly.
Is this a legitimate change or have I created other problems
elsewhere?!?
Alex
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---