Dispatch resize event to resize Handsontable on initialisation (#10367)

Fixes #10355
pull/10369/head
Sage Abdullah 2023-04-20 13:55:15 +07:00 zatwierdzone przez Matt Westcott
rodzic d650af3f39
commit b9f8a6b6c0
3 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -90,6 +90,7 @@ Changelog
* Fix: When i18n is not enabled, avoid making a Locale query on every page view (Dan Braghis)
* Fix: Fix initialisation of commenting widgets within StreamField (Thibaud Colas)
* Fix: Fix various regressions in the commenting UI (Thibaud Colas)
* Fix: Prevent TableBlock from becoming uneditable after save (Sage Abdullah)
* Docs: Add code block to make it easier to understand contribution docs (Suyash Singh)
* Docs: Add new "Icons" page for icons customisation and reuse across the admin interface (Coen van der Kamp, Thibaud Colas)
* Docs: Fix broken formatting for MultiFieldPanel / FieldRowPanel permission kwarg docs (Matt Westcott)

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;

Wyświetl plik

@ -145,6 +145,7 @@ We hope this new theme will bring accessibility improvements for users who perfe
* When i18n is not enabled, avoid making a Locale query on every page view (Dan Braghis)
* Fix initialisation of commenting widgets within StreamField (Thibaud Colas)
* Fix various regressions in the commenting UI (Thibaud Colas)
* Prevent TableBlock from becoming uneditable after save (Sage Abdullah)
### Documentation