From e945b51b3059cc600017144f1deb161c0811924f Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 26 Jul 2021 10:44:02 +0800 Subject: [PATCH] Roo/bootstrap/Table.js roojs-bootstrap.js roojs-bootstrap-debug.js --- Roo/bootstrap/Table.js | 7 ++++++- roojs-bootstrap-debug.js | 7 ++++++- roojs-bootstrap.js | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/Roo/bootstrap/Table.js b/Roo/bootstrap/Table.js index ec08cf37fa..aa99b0029a 100644 --- a/Roo/bootstrap/Table.js +++ b/Roo/bootstrap/Table.js @@ -1373,7 +1373,12 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component, { } }, - + onColumnSplitterMoved : function() + { + // resize it.. + + + }, onHeaderChange : function() { var header = this.renderHeader(); diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 4ebc4d2a6b..df21dea702 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -9957,7 +9957,12 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component, { } }, - + onColumnSplitterMoved : function() + { + // resize it.. + + + }, onHeaderChange : function() { var header = this.renderHeader(); diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index 2f8c5b8357..c9ab01ab5f 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -413,7 +413,7 @@ var C=this.el.select('tbody > tr',true).elements;if(typeof(C[A])=='undefined'){r }return 0;},getGridEl:function(){return this.el;},autoSize:function(){var A=Roo.get(this.el.dom);var B=this.getGridEl().select('thead',true).first();var C=this.getGridEl().select('tbody',true).first();var D=this.getGridEl().select('tfoot',true).first();var cw=A.getWidth(); this.getGridEl().select('tfoot tr, tfoot td',true).setWidth(cw);if(C){C.setWidth(A.getWidth());var E=(C.dom.offsetWidth-C.dom.clientWidth);cw-=E;}cw=Math.max(cw,this.totalWidth);this.getGridEl().select('tbody tr',true).setWidth(cw);return;},onBodyScroll:function(){if(this.headEl){this.headEl.setStyle({'position':'relative','left':(-1*this.bodyEl.dom.scrollLeft)+'px'} );}if(this.lazyLoad){var A=this.bodyEl.dom.scrollHeight;var B=Math.ceil(this.bodyEl.getScroll().top);var C=this.bodyEl.getHeight();if(A-C==B){var D=this.ds.getTotalCount();if(this.footer.cursor+this.footer.pageSize