From 7625c5b3c991b3c4cfecb2a36c70f3589e26cba4 Mon Sep 17 00:00:00 2001 From: john Date: Fri, 12 Oct 2018 11:37:23 +0800 Subject: [PATCH] Roo/bootstrap/Table.js roojs-bootstrap.js roojs-bootstrap-debug.js --- Roo/bootstrap/Table.js | 2 ++ roojs-bootstrap-debug.js | 4 ++-- roojs-bootstrap.js | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Roo/bootstrap/Table.js b/Roo/bootstrap/Table.js index 4da366ea3b..54adb4b64e 100644 --- a/Roo/bootstrap/Table.js +++ b/Roo/bootstrap/Table.js @@ -1203,6 +1203,8 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component, { for(var j = 0; j < w.length; j++) { + Roo.log('spliting;;;'); + var size_cls = w[j].split("-"); if(!Number.isInteger(size_cls[1] * 1)) { diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 6a21f9391e..0227c36ce8 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -7147,6 +7147,8 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component, { for(var j = 0; j < w.length; j++) { + Roo.log('spliting;;;'); + var size_cls = w[j].split("-"); if(!Number.isInteger(size_cls[1] * 1)) { @@ -7161,8 +7163,6 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component, { continue; } - Roo.log('not replacing??'); - rows[i].classList.replace( "col-"+size_cls[0]+"-"+this.colModel.config[col_index][size_cls[0]], "col-"+size_cls[0]+"-"+size_cls[1] diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index 6cd592744e..913c6dd796 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -283,7 +283,7 @@ var B=Math.ceil(this.mainBody.getScroll().top);var C=this.mainBody.getHeight();i this.CSS.updateRule(D,"display","");this.CSS.updateRule(E,"display","");if(C){this.CSS.updateRule(D,"display","none");this.CSS.updateRule(E,"display","none");}this.onHeaderChange();this.onLoad();},setColumnWidth:function(A,B){if(!this.colModel.config[A]){return; }var w=B.split(" ");var C=this.el.dom.getElementsByClassName("x-col-"+A);var D=this.el.dom.getElementsByClassName("x-hcol-"+A);for(var j=0;j