From: Dan Vanderkam Date: Tue, 19 Feb 2013 20:55:35 +0000 (-0500) Subject: getComputedStyle -> window.getComputedStyle X-Git-Tag: v1.0.0~57 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=5ad7495d3176ab8f7e79304be352ffe1e24bfb35;p=dygraphs.git getComputedStyle -> window.getComputedStyle --- diff --git a/dygraph-utils.js b/dygraph-utils.js index 67cf4f7..6aa7dfc 100644 --- a/dygraph-utils.js +++ b/dygraph-utils.js @@ -301,7 +301,7 @@ Dygraph.findPosX = function(obj) { if(obj.offsetParent) { var copyObj = obj; while(1) { - var borderLeft = getComputedStyle(copyObj, null).borderLeft || "0"; + var borderLeft = window.getComputedStyle(copyObj, null).borderLeft || "0"; curleft += parseInt(borderLeft, 10) ; curleft += copyObj.offsetLeft; if(!copyObj.offsetParent) { @@ -334,7 +334,7 @@ Dygraph.findPosY = function(obj) { if(obj.offsetParent) { var copyObj = obj; while(1) { - var borderTop = getComputedStyle(copyObj, null).borderTop || "0"; + var borderTop = window.getComputedStyle(copyObj, null).borderTop || "0"; curtop += parseInt(borderTop, 10) ; curtop += copyObj.offsetTop; if(!copyObj.offsetParent) {