From: Alan Knowles Date: Thu, 24 Jan 2019 07:09:26 +0000 (+0800) Subject: Roo/bootstrap/Table.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=65db4a220ea657af0065b3883662f9bb3c7f4501 Roo/bootstrap/Table.js --- diff --git a/Roo/bootstrap/Table.js b/Roo/bootstrap/Table.js index a30dba3f6b..a810182cdb 100644 --- a/Roo/bootstrap/Table.js +++ b/Roo/bootstrap/Table.js @@ -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 + ); + });