ux/FlipCounter.js
authorAlan Knowles <alan@roojs.com>
Tue, 6 Dec 2016 08:27:29 +0000 (16:27 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 6 Dec 2016 08:27:29 +0000 (16:27 +0800)
ux/FlipCounter.js

index 38e1161..891a65d 100644 (file)
@@ -112,8 +112,8 @@ Roo.extend(Roo.ux.FlipCounter, Roo.bootstrap.Component, {
         // Remove separators
         if (this.digits.length % 3 == 0)
         {
-            var comma = this.ul.find('li.comma:first-child');
-            this.ulWidth = this.ulWidth - comma.outerWidth(true);
+            var comma = this.el.select('li.comma:first-child');
+            this.ulWidth = this.ulWidth - comma.getWidth(true);
             comma.remove();
         }