From: Alan Knowles Date: Tue, 27 Jul 2021 03:36:54 +0000 (+0800) Subject: Roo/bootstrap/Table.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=85e8b336ea9af62bde200f281bdec96edede56de Roo/bootstrap/Table.js --- diff --git a/Roo/bootstrap/Table.js b/Roo/bootstrap/Table.js index 1bbe2520ea..42d7f141cb 100644 --- a/Roo/bootstrap/Table.js +++ b/Roo/bootstrap/Table.js @@ -1268,28 +1268,28 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component, { if(typeof(config.cls) != 'undefined'){ td.cls = (typeof(td.cls) == 'undefined') ? config.cls : (td.cls + ' ' + config.cls); } - /* - ['xs','sm','md','lg'].map(function(size){ - - if(typeof(config[size]) == 'undefined'){ - return; - } - - - - if (!config[size]) { // 0 = hidden - // 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] + ( - size == 'xs' ? (' col-' + config[size] ) : '' // bs4 col-{num} replaces col-xs - ); - - - }); - */ + if (this.responsive) { + ['xs','sm','md','lg'].map(function(size){ + + if(typeof(config[size]) == 'undefined'){ + return; + } + + + + if (!config[size]) { // 0 = hidden + // 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] + ( + size == 'xs' ? (' col-' + config[size] ) : '' // bs4 col-{num} replaces col-xs + ); + + + }); + } row.cn.push(td); }