Browse Source

Allow tables to be added without a parent panel

adaptive-webui-19844
Thomas Piccirello 7 years ago
parent
commit
4d3a894bcb
  1. 3
      src/webui/www/private/scripts/dynamicTable.js

3
src/webui/www/private/scripts/dynamicTable.js

@ -66,6 +66,8 @@ var DynamicTable = new Class({ @@ -66,6 +66,8 @@ var DynamicTable = new Class({
$(this.dynamicTableDivId).addEvent('scroll', scrollFn);
// if the table exists within a panel
if ($(this.dynamicTableDivId).getParent('.panel')) {
var resizeFn = function() {
var panel = $(this.dynamicTableDivId).getParent('.panel');
var h = panel.getBoundingClientRect().height - $(this.dynamicTableFixedHeaderDivId).getBoundingClientRect().height;
@ -99,6 +101,7 @@ var DynamicTable = new Class({ @@ -99,6 +101,7 @@ var DynamicTable = new Class({
}.bind(this);
setInterval(checkResizeFn, 500);
}
},
setupHeaderEvents: function() {

Loading…
Cancel
Save