X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fdom-drag.js;h=baf4b66227c7b767fb6c89c24b255f82574023a5;hb=b1ab2024d5e2e81099c704a6b78ef9d5476c5f62;hp=5618df4be4f4073b74b4d107b6891b69c3ef95d6;hpb=f18bac8374119fa1f3c826e82cfc74ce2ce52dd7;p=brisk.git diff --git a/web/dom-drag.js b/web/dom-drag.js index 5618df4..baf4b66 100644 --- a/web/dom-drag.js +++ b/web/dom-drag.js @@ -16,6 +16,8 @@ * not, write to the Free Software Foundation, Inc, 59 Temple Place - * Suite 330, Boston, MA 02111-1307, USA. * + * $Id$ + * */ /************************************************** @@ -44,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"; }