From b18c99b7f09fdac8d7eab9cd2dd6d79eeeba56db Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 27 Jul 2021 17:46:10 +0800 Subject: [PATCH] fix styling for hidden responsive --- Roo/bootstrap/Table.js | 4 ++-- roojs-bootstrap-debug.js | 4 ++-- roojs-bootstrap.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Roo/bootstrap/Table.js b/Roo/bootstrap/Table.js index df0d9f8152..d250f31c3b 100644 --- a/Roo/bootstrap/Table.js +++ b/Roo/bootstrap/Table.js @@ -487,8 +487,8 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component, { if (this.responsive) { width = ''; left = ''; - hidden = cm.isHidden(i) ? 'display:none' : ''; - splithide = 'display: none'; + hidden = cm.isHidden(i) ? 'display:none;' : ''; + splithide = 'display: none;'; } styles.push( '#' , this.id , ' .x-col-' , i, " {", cm.config[i].css, width, hidden, "}\n" ); diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index c421bb99a8..053261ff9e 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -9133,8 +9133,8 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component, { if (this.responsive) { width = ''; left = ''; - hidden = cm.isHidden(i) ? 'display:none' : ''; - splithide = 'display: none'; + hidden = cm.isHidden(i) ? 'display:none;' : ''; + splithide = 'display: none;'; } styles.push( '#' , this.id , ' .x-col-' , i, " {", cm.config[i].css, width, hidden, "}\n" ); diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index 2f65f91e8c..22247fb0ad 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -377,7 +377,7 @@ this.resizeProxy=Roo.get(document.body).createChild({cls:"x-grid-resize-proxy",h },initCSS:function(){var cm=this.cm,A=[];this.CSS.removeStyleSheet(this.id+'-cssrules');var B=this.headEl?this.headEl.dom.clientHeight:0;var sz=Roo.getGridSize();var C=0;var D=-1;var E=[];var F=0;for(var i=0,G=cm.getColumnCount();i0){D=i}C+=w;E.push({rel:w,abs:false});}var H=this.bodyEl.dom.clientWidth-F;var I=Math.floor(H/C);var J=H-(I*C); var K,L,M=0,N,O;for(var i=0,G=cm.getColumnCount();i