From 46f169465f13e9f94ba011a8d788a588a0e70cea Mon Sep 17 00:00:00 2001 From: john Date: Fri, 12 Oct 2018 11:23:43 +0800 Subject: [PATCH] Roo/bootstrap/Table.js --- Roo/bootstrap/Table.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Roo/bootstrap/Table.js b/Roo/bootstrap/Table.js index 602602f18d..8d75f2f5ce 100644 --- a/Roo/bootstrap/Table.js +++ b/Roo/bootstrap/Table.js @@ -1177,6 +1177,24 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component, { this.colModel.config[col_index][size_cls[0]] = size_cls[1]; + for(var j = 0; w.length; j++) { + + var size_cls = w[j].split("-"); + + if(!Number.isInteger(size_cls[1] * 1)) { + continue; + } + + if(!this.colModel.config[col_index][size_cls[0]]) { + continue; + } + + rows[i].classList.replace( + "col-"+size_cls[0]+"-"+this.colModel.config[col_index][size_cls[0]], + "col-"+size_cls[0]+"-"+size_cls[1] + ); + } + for(var i = 0; i < rows.length; i++) { for(var j = 0; w.length; j++) { -- 2.39.2