Roo/bootstrap/Table.js
authorAlan Knowles <alan@roojs.com>
Mon, 26 Jul 2021 04:51:58 +0000 (12:51 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 26 Jul 2021 04:51:58 +0000 (12:51 +0800)
Roo/bootstrap/Table.js

index aafec34..b57151e 100644 (file)
@@ -438,6 +438,7 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component,  {
                 last = i
             }
             total += w;
+            cols.push(w);
         }
         
         
@@ -453,7 +454,7 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component,  {
                 hidden = '';
                 
                 // we can honour xs/sm/md/xl ?
-                var w = cm.getColumnWidth(i, sz) * unitWidth;
+                var w = cols[i] * unitWidth;
                 if (w===0) {
                     hidden = 'display:none;';
                 }