Roo/Element.js
authoredward <edward@roojs.com>
Thu, 28 Jan 2016 09:15:37 +0000 (17:15 +0800)
committeredward <edward@roojs.com>
Thu, 28 Jan 2016 09:15:37 +0000 (17:15 +0800)
Roo/Element.js

index f86154b..8d3acee 100644 (file)
@@ -1200,27 +1200,27 @@ if(opt.anim.isAnimated()){
                 return this.getX();
             }else{
                 
-//                return parseInt(this.getStyle("left"), 10) || 0;
+                return parseInt(this.getStyle("left"), 10) || 0;
                 
-                var x = this.getStyle("left");
-                
-                if(!x || x === 'AUTO'){
-                    return 0;
-                }
-                
-                if(this.pxReg.test(x)){
-                    return parseFloat(x);
-                }
-                
-                x = this.getX();
-                
-                var  par = this.dom.offsetParent ? Roo.fly(this.dom.offsetParent) : false;
-                
-                 if (par !== false) {
-                    x -= par.getX();
-                }
-
-                return x;
+//                var x = this.getStyle("left");
+//                
+//                if(!x || x === 'AUTO'){
+//                    return 0;
+//                }
+//                
+//                if(this.pxReg.test(x)){
+//                    return parseFloat(x);
+//                }
+//                
+//                x = this.getX();
+//                
+//                var  par = this.dom.offsetParent ? Roo.fly(this.dom.offsetParent) : false;
+//                
+//                 if (par !== false) {
+//                    x -= par.getX();
+//                }
+//
+//                return x;
             }
         },