diff --git a/CHANGELOG b/CHANGELOG index b2d5c91..9256dce 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Fix Element#clonePosition to call viewportOffset. Closes #8372. [graemenelson, Christophe Porteneuve] + * Prevent an error being thrown by $$ when #id does not exist in $$("div #id"). Closes #8325. [Tobie Langel, ecke] * Make Prototype.ScriptFragment behave when including Prototype inline. [Christophe Porteneuve] diff --git a/src/dom.js b/src/dom.js index e773cb3..479e985 100644 --- a/src/dom.js +++ b/src/dom.js @@ -588,7 +588,7 @@ Element.Methods = { // position:absolute needs offsetParent deltas if (Element.getStyle(element,'position') == 'absolute') { parent = element.getOffsetParent(); - delta = parent.getViewportOffset(); + delta = parent.viewportOffset(); } // correct by body offsets (fixes Safari)