un po' di modifiche
[brisk.git] / web / dom-drag.js
index 5f99f97..baf4b66 100644 (file)
@@ -46,12 +46,12 @@ var Drag = {
                o.root = oRoot && oRoot != null ? oRoot : o ;\r
 \r
                if (o.hmode && isNaN(parseInt(o.root.style.left  ))) {\r
-                       o.root.style.left = window.getComputedStyle(o, "").getPropertyValue("left");\r
+                       o.root.style.left = document.defaultView.getComputedStyle(o, "").getPropertyValue("left");\r
                        if (isNaN(parseInt(o.root.style.left)))\r
                                o.root.style.left   = "0px";\r
                        }\r
                if (o.vmode  && isNaN(parseInt(o.root.style.top   ))) {\r
-                       o.root.style.top = window.getComputedStyle(o, "").getPropertyValue("top");\r
+                       o.root.style.top = document.defaultView.getComputedStyle(o, "").getPropertyValue("top");\r
                        if (isNaN(parseInt(o.root.style.top)))\r
                                o.root.style.top   = "0px";\r
                        }\r