1 var ResizeTable =
function(table){
7 ResizeTable.prototype.initialize =
function(row){
8 var table = this.table,
11 if(typeof ResizeObserver !==
"undefined" && table.rowManager.getRenderMode() ===
"virtual"){
12 this.observer =
new ResizeObserver(
function(entry){
13 if(!table.browserMobile || (table.browserMobile &&!table.modules.edit.currentCell)){
18 this.observer.observe(table.element);
20 this.binding =
function(){
21 if(!table.browserMobile || (table.browserMobile &&!table.modules.edit.currentCell)){
26 window.addEventListener(
"resize", this.binding);
30 ResizeTable.prototype.clearBindings =
function(row){
32 window.removeEventListener(
"resize", this.binding);
36 this.observer.unobserve(this.table.element);
40 Tabulator.prototype.registerModule(
"resizeTable", ResizeTable);