Index: Tools/TestResultServer/static-dashboards/ui.js |
diff --git a/Tools/TestResultServer/static-dashboards/ui.js b/Tools/TestResultServer/static-dashboards/ui.js |
index ea9b468c1027dc83e7eb44ac32808b3f99e64afe..3e9160a330120c9de324734300478965981aa895 100644 |
--- a/Tools/TestResultServer/static-dashboards/ui.js |
+++ b/Tools/TestResultServer/static-dashboards/ui.js |
@@ -58,13 +58,13 @@ ui.popup.show = function(target, html) |
var x = Math.min(targetRect.left - 10, document.documentElement.clientWidth - popup.offsetWidth); |
x = Math.max(0, x); |
- popup.style.left = x + document.body.scrollLeft + 'px'; |
+ popup.style.left = x + window.pageXOffset + 'px'; |
ojan
2014/06/29 03:46:37
This part of the web platform is so crufty. :(
|
var y = targetRect.top + targetRect.height; |
if (y + popup.offsetHeight > document.documentElement.clientHeight) |
y = targetRect.top - popup.offsetHeight; |
y = Math.max(0, y); |
- popup.style.top = y + document.body.scrollTop + 'px'; |
+ popup.style.top = y + window.pageYOffset + 'px'; |
} |
ui.popup._handleMouseDown = function(e) { |