prototype: Fix Element#clonePosition to call Element#viewportOffset. Closes #8372.
This commit is contained in:
parent
beeb12e7dd
commit
7d2ae294a9
|
@ -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]
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue