o.root = oRoot && oRoot != null ? oRoot : o ;\r
\r
if (o.hmode && isNaN(parseInt(o.root.style.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
+ var res = parseInt(getStyle(o, "left", "left"));\r
+ if (isNaN(res)) {\r
+ o.root.style.left = "0px";\r
+ }\r
+ else {\r
+ o.root.style.left = res;\r
+ }\r
+ }\r
if (o.vmode && isNaN(parseInt(o.root.style.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
+ var res = parseInt(getStyle(o, "top", "top"));\r
+ if (isNaN(res)) {\r
+ o.root.style.top = "0px";\r
+ }\r
+ else {\r
+ o.root.style.top = res;\r
+ }\r
+ }\r
if (!o.hmode && isNaN(parseInt(o.root.style.right ))) o.root.style.right = "0px";\r
if (!o.vmode && isNaN(parseInt(o.root.style.bottom))) o.root.style.bottom = "0px";\r
\r