kopia lustrzana https://github.com/wagtail/wagtail
Dispatch resize event to resize Handsontable on initialisation
rodzic
43c1753cb5
commit
5d474b18a5
|
@ -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;
|
||||
|
|
Ładowanie…
Reference in New Issue