Dispatch resize event to resize Handsontable on initialisation

stable/4.2.x
Sage Abdullah 2023-04-20 13:55:15 +07:00 zatwierdzone przez Matt Westcott
rodzic 43c1753cb5
commit 5d474b18a5
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -174,7 +174,7 @@ function initTable(id, tableOptions) {
// Render the table. Calling render also removes 'null' literals from empty cells.
hot.render();
resizeHeight(getHeight());
resizeWidth(getWidth());
window.dispatchEvent(new Event('resize'));
});
}
window.initTable = initTable;