Tabulator: avoid setting height if already at the correct height
Setting the height of a Tabulator can trigger all kinds of things, including some buggy behaviour where all the jobs would disappear from screen. Just don't do it unless it's necessary.
This commit is contained in:
parent
e6ff81fc3d
commit
12f4d9b5ce
@ -242,6 +242,12 @@ export default {
|
||||
}
|
||||
|
||||
const tableHeight = availableHeight - tableContainer.offsetTop;
|
||||
if (this.tabulator.element.clientHeight == tableHeight) {
|
||||
// Setting the height on a tabulator triggers all kinds of things, so
|
||||
// don't do if it not necessary.
|
||||
return;
|
||||
}
|
||||
|
||||
this.tabulator.setHeight(tableHeight);
|
||||
},
|
||||
},
|
||||
|
@ -226,6 +226,12 @@ export default {
|
||||
}
|
||||
|
||||
const tableHeight = availableHeight - tableContainer.offsetTop;
|
||||
if (this.tabulator.element.clientHeight == tableHeight) {
|
||||
// Setting the height on a tabulator triggers all kinds of things, so
|
||||
// don't do if it not necessary.
|
||||
return;
|
||||
}
|
||||
|
||||
this.tabulator.setHeight(tableHeight);
|
||||
},
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user