Upgrade to ExtJS 3.0.3 - Released 10/11/2009
[extjs.git] / src / adapter / core / ext-base-dom.js
index 9dd065d..6fb32f4 100644 (file)
@@ -1,5 +1,5 @@
 /*!
- * Ext JS Library 3.0.0
+ * Ext JS Library 3.0.3
  * Copyright(c) 2006-2009 Ext JS, LLC
  * licensing@extjs.com
  * http://www.extjs.com/license
@@ -8,6 +8,7 @@
        var doc = document,\r
                isCSS1 = doc.compatMode == "CSS1Compat",\r
                MAX = Math.max,         \r
+        ROUND = Math.round,\r
                PARSEINT = parseInt;\r
                \r
        Ext.lib.Dom = {\r
@@ -85,7 +86,7 @@
                    if (el.getBoundingClientRect) {\r
                        b = el.getBoundingClientRect();\r
                        scroll = fly(document).getScroll();\r
-                       ret = [b.left + scroll.left, b.top + scroll.top];\r
+                       ret = [ROUND(b.left + scroll.left), ROUND(b.top + scroll.top)];\r
                    } else {  \r
                            p = el;             \r
                            hasAbsolute = fly(el).isStyle("position", "absolute");\r