Commit 18c34c47 authored by Solly's avatar Solly

Merge pull request #461 from kanaka/bug/459-incorrect-position-with-scrollbars

Make Util.getPosition be relative to page
parents 20d3fb66 7e54fb93
......@@ -436,7 +436,7 @@ Util.load_scripts = function (files) {
Util.getPosition = function(obj) {
"use strict";
var objPosition = obj.getBoundingClientRect();
return {'x': objPosition.left, 'y': objPosition.top};
return {'x': objPosition.left + window.pageXOffset, 'y': objPosition.top + window.pageYOffset};
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment