Roo/bootstrap/Table.js
authorAlan Knowles <alan@roojs.com>
Thu, 24 Jan 2019 07:09:26 +0000 (15:09 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 24 Jan 2019 07:09:26 +0000 (15:09 +0800)
Roo/bootstrap/Table.js

index a30dba3..a810182 100644 (file)
@@ -969,12 +969,18 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component,  {
                     return;
                 }
                 
+                
+                  
                 if (!config[size]) { // 0 = hidden
-                    td.cls += ' hidden-' + size;
+                    // BS 4 '0' is treated as hide that column and below.
+                    td.cls += ' hidden-' + size + ' hidden' + size + 'down';
                     return;
                 }
                 
-                td.cls += ' col-' + size + '-' + config[size];
+                td.cls += ' col-' + size + '-' + config[size] + (
+                    size == 'xs' ? (' col-' +   config[size] ) : '' // bs4 col-{num} replaces col-xs
+                );
+                 
 
             });