3 var ResizeTable =
function ResizeTable(table) {
9 ResizeTable.prototype.initialize =
function (row) {
10 var table = this.table,
13 if (typeof ResizeObserver !==
"undefined" && table.rowManager.getRenderMode() ===
"virtual") {
14 this.observer =
new ResizeObserver(
function (entry) {
15 if (!table.browserMobile || table.browserMobile && !table.modules.edit.currentCell) {
20 this.observer.observe(table.element);
22 this.binding =
function () {
23 if (!table.browserMobile || table.browserMobile && !table.modules.edit.currentCell) {
28 window.addEventListener(
"resize", this.binding);
32 ResizeTable.prototype.clearBindings =
function (row) {
34 window.removeEventListener(
"resize", this.binding);
38 this.observer.unobserve(this.table.element);
42 Tabulator.prototype.registerModule(
"resizeTable", ResizeTable);