X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-utils.js;h=11a2fba2f76861806fde946af6be631083e9d8ca;hb=5ca15c05928cb263d9f43c8ce2fb3fb67f124ad4;hp=8c6942b1bdcf5cd3e113ac26c0da9600c06b9ccc;hpb=4ff8c62e5e2e62e81e993fa1df626e62e385d28c;p=dygraphs.git diff --git a/dygraph-utils.js b/dygraph-utils.js index 8c6942b..11a2fba 100644 --- a/dygraph-utils.js +++ b/dygraph-utils.js @@ -301,6 +301,7 @@ Dygraph.findPosX = function(obj) { if(obj.offsetParent) { var copyObj = obj; while(1) { + // NOTE: the if statement here is for IE8. var borderLeft = "0"; if (window.getComputedStyle) { borderLeft = window.getComputedStyle(copyObj, null).borderLeft || "0"; @@ -337,6 +338,7 @@ Dygraph.findPosY = function(obj) { if(obj.offsetParent) { var copyObj = obj; while(1) { + // NOTE: the if statement here is for IE8. var borderTop = "0"; if (window.getComputedStyle) { borderTop = window.getComputedStyle(copyObj, null).borderTop || "0";