Fix #6465 - drag drop for cards
[roojs1] / Roo / bootstrap / ProgressBar.js
index 01b03c5..d0c0f3b 100644 (file)
@@ -42,7 +42,8 @@ Roo.extend(Roo.bootstrap.ProgressBar, Roo.bootstrap.Component,  {
         
         var cfg = {
             tag: 'div',
-            cls: 'progress-bar'
+            cls: 'progress-bar',
+            style: 'width:' + Math.ceil((this.aria_valuenow / this.aria_valuemax) * 100) + '%'
         };
         
         if(this.sr_only){
@@ -83,7 +84,8 @@ Roo.extend(Roo.bootstrap.ProgressBar, Roo.bootstrap.Component,  {
     update : function(aria_valuenow)
     {
         this.aria_valuenow = aria_valuenow;
-        this.el.setStyle('width', this.aria_valuenow / this.aria_valuemax);
+        
+        this.el.setStyle('width', Math.ceil((this.aria_valuenow / this.aria_valuemax) * 100) + '%');
     }
    
 });