From: Matteo Nastasi (mop) Date: Sat, 13 Jan 2007 04:56:36 +0000 (+0000) Subject: cambiata root della getComputedStyle() X-Git-Tag: 3.0.0~391 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=5606e6a2cb57a6fda17170e3a07c084373a6b9e5;p=brisk.git cambiata root della getComputedStyle() --- diff --git a/web/dom-drag.js b/web/dom-drag.js index 5f99f97..baf4b66 100644 --- a/web/dom-drag.js +++ b/web/dom-drag.js @@ -46,12 +46,12 @@ var Drag = { o.root = oRoot && oRoot != null ? oRoot : o ; if (o.hmode && isNaN(parseInt(o.root.style.left ))) { - o.root.style.left = window.getComputedStyle(o, "").getPropertyValue("left"); + o.root.style.left = document.defaultView.getComputedStyle(o, "").getPropertyValue("left"); if (isNaN(parseInt(o.root.style.left))) o.root.style.left = "0px"; } if (o.vmode && isNaN(parseInt(o.root.style.top ))) { - o.root.style.top = window.getComputedStyle(o, "").getPropertyValue("top"); + o.root.style.top = document.defaultView.getComputedStyle(o, "").getPropertyValue("top"); if (isNaN(parseInt(o.root.style.top))) o.root.style.top = "0px"; }