prototype: Fix Element#clonePosition to call Element#viewportOffset. Closes #8372.

This commit is contained in:
Sam Stephenson 2007-05-18 01:12:35 +00:00
parent beeb12e7dd
commit 7d2ae294a9
2 changed files with 3 additions and 1 deletions

View File

@ -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]

View File

@ -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)