allow string based values for comboboxarray
[roojs1] / Roo / bootstrap / ProgressBar.js
index dbacf05..d0c0f3b 100644 (file)
@@ -43,7 +43,7 @@ Roo.extend(Roo.bootstrap.ProgressBar, Roo.bootstrap.Component,  {
         var cfg = {
             tag: 'div',
             cls: 'progress-bar',
-            style: 'width:' + (this.aria_valuenow / this.aria_valuemax)
+            style: 'width:' + Math.ceil((this.aria_valuenow / this.aria_valuemax) * 100) + '%'
         };
         
         if(this.sr_only){
@@ -84,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) + '%');
     }
    
 });