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

index 3508be0..1da3cfa 100644 (file)
@@ -1205,7 +1205,7 @@ if(opt.anim.isAnimated()){
                     return 0;
                 }
                 
-                if(this.pxReg.test(x)){
+                if(new RegExp(this.pxReg).test(x)){
                     return parseFloat(x);
                 }