Roo/bootstrap/Table.js
authorjohn <john@roojs.com>
Fri, 12 Oct 2018 03:23:43 +0000 (11:23 +0800)
committerjohn <john@roojs.com>
Fri, 12 Oct 2018 03:23:43 +0000 (11:23 +0800)
Roo/bootstrap/Table.js

index 602602f..8d75f2f 100644 (file)
@@ -1177,6 +1177,24 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component,  {
         
         this.colModel.config[col_index][size_cls[0]] = size_cls[1];
         
+        for(var j = 0; w.length; j++) {
+            
+            var size_cls = w[j].split("-");
+            
+            if(!Number.isInteger(size_cls[1] * 1)) {
+                continue;
+            }
+            
+            if(!this.colModel.config[col_index][size_cls[0]]) {
+                continue;
+            }
+            
+            rows[i].classList.replace(
+                "col-"+size_cls[0]+"-"+this.colModel.config[col_index][size_cls[0]],
+                "col-"+size_cls[0]+"-"+size_cls[1]
+            );
+        }
+        
         for(var i = 0; i < rows.length; i++) {
             
             for(var j = 0; w.length; j++) {