We should only do targetedhot.refreshDimensions() at the specific moments the editor layout changes:
after table data load / parsed-excel preview render,
on sidebar collapse/expand,
on upload-modal and edit-record-modal open/close,
after row add/remove and column show/hide
`EditorComponent` registers an `afterRender` hook that dispatches a synthetic **window** `resize` event on **every** Handsontable draw:
```ts
hot.addHook('afterRender', (isForced) => {
this.eventService.dispatchEvent('resize') // window.dispatchEvent(new Event('resize'))
this.fixAriaAccessibility()
})
```
We should only do **targeted** `hot.refreshDimensions()` at the specific moments the editor layout changes:
- after table data load / parsed-excel preview render,
- on sidebar collapse/expand,
- on upload-modal and edit-record-modal open/close,
- after row add/remove and column show/hide
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
EditorComponentregisters anafterRenderhook that dispatches a synthetic windowresizeevent on every Handsontable draw:We should only do targeted
hot.refreshDimensions()at the specific moments the editor layout changes: