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

index 19b5573..271a9c1 100644 (file)
@@ -1168,6 +1168,8 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component,  {
         
         var rows = this.el.dom.getElementsByClassName("x-col-"+col_index);
         
+        var h_rows = this.el.dom.getElementsByClassName("x-hcol-"+col_index);
+        
         for(var i = 0; i < rows.length; i++) {
             
             for(var j = 0; w.length; j++) {
@@ -1187,6 +1189,11 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component,  {
                     "col-"+size_cls[0]+"-"+size_cls[1]
                 );
                 
+                rows[i].classList.replace(
+                    "col-"+size_cls[0]+"-"+this.colModel.config[col_index][size_cls[0]],
+                    "col-"+size_cls[0]+"-"+size_cls[1]
+                );
+                
                 this.colModel.config[col_index][size_cls[0]] = size_cls[1]
             }
         }