From 213ae466d5e7707a42d5bf94fed688aed64cd87e Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 18 Aug 2021 16:31:38 +0800 Subject: [PATCH] popover column resizing on grids --- docs/json/roodata.json | 4 ++-- docs/src/Roo_bootstrap_Table.js.html | 9 ++++++--- docs/symbols/Roo.bootstrap.Table.json | 4 ++-- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/docs/json/roodata.json b/docs/json/roodata.json index 46710580d5..59b2e0fa0f 100644 --- a/docs/json/roodata.json +++ b/docs/json/roodata.json @@ -103065,7 +103065,7 @@ { "name" : "enableColumnResize", "type" : "Boolean", - "desc" : "default true if columns can be resized (drag/drop)", + "desc" : "default true if columns can be resized = needs scrollBody to be set to work (drag/drop)", "memberOf" : "" }, { @@ -103143,7 +103143,7 @@ { "name" : "scrollBody", "type" : "Boolean", - "desc" : "e) default false - body scrolled / fixed header", + "desc" : "e) default false - body scrolled / fixed header (with resizable columns)", "memberOf" : "" }, { diff --git a/docs/src/Roo_bootstrap_Table.js.html b/docs/src/Roo_bootstrap_Table.js.html index 6de3fa3f65..5227d0767f 100644 --- a/docs/src/Roo_bootstrap_Table.js.html +++ b/docs/src/Roo_bootstrap_Table.js.html @@ -82,11 +82,12 @@ Currently the Table uses multiple headers to try and handle XL / Medium etc... * @cfg {Boolean} headerShow (true|false) generate thead, default true * @cfg {Boolean} rowSelection (true|false) default false * @cfg {Boolean} cellSelection (true|false) default false - * @cfg {Boolean} scrollBody (true|false) default false - body scrolled / fixed header + * @cfg {Boolean} scrollBody (true|false) default false - body scrolled / fixed header (with resizable columns) * @cfg {Roo.bootstrap.PagingToolbar} footer a paging toolbar * @cfg {Boolean} lazyLoad auto load data while scrolling to the end (default false) * @cfg {Boolean} auto_hide_footer auto hide footer if only one page (default false) - * @cfg {Boolean} enableColumnResize default true if columns can be resized (drag/drop) + * @cfg {Boolean} enableColumnResize default true if columns can be resized = needs scrollBody to be set to work (drag/drop) + * * @cfg {Number} minColumnWidth default 50 pixels minimum column width * * @constructor @@ -499,7 +500,9 @@ Currently the Table uses multiple headers to try and handle XL / Medium etc... } styles.push('#' , this.id , ' .x-hcol-' , i, " { ", width, hidden," }\n", - '#' , this.id , ' .x-grid-split-' , i, " { ", left, splithide,'height:', (headHeight - 4), "px;}\n" + '#' , this.id , ' .x-grid-split-' , i, " { ", left, splithide, 'height:', (headHeight - 4), "px;}\n", + // this is the popover version.. + '.popover-inner #' , this.id , ' .x-grid-split-' , i, " { ", left, splithide, 'height:', 100, "%;}\n" ); } diff --git a/docs/symbols/Roo.bootstrap.Table.json b/docs/symbols/Roo.bootstrap.Table.json index a5e91c9b16..cbaa13b008 100644 --- a/docs/symbols/Roo.bootstrap.Table.json +++ b/docs/symbols/Roo.bootstrap.Table.json @@ -54,7 +54,7 @@ { "name" : "scrollBody", "type" : "Boolean", - "desc" : "e) default false - body scrolled / fixed header", + "desc" : "e) default false - body scrolled / fixed header (with resizable columns)", "memberOf" : "" }, { @@ -210,7 +210,7 @@ { "name" : "enableColumnResize", "type" : "Boolean", - "desc" : "default true if columns can be resized (drag/drop)", + "desc" : "default true if columns can be resized = needs scrollBody to be set to work (drag/drop)", "memberOf" : "" }, { -- 2.39.2