Shared across modules ยท console.warn
ResizeObserver is unavailable; this view was sized once at mount and will not follow its container.
Printed by Shared across modules, prefixed [lattice], since 1.52.0.
Warnings reference › shared.autosize.no-resize-observer
- Identifier
shared.autosize.no-resize-observer- Raised by
- Shared across modules
- Since
- 1.52.0
What happened
A module view that sizes itself to its container looked for ResizeObserver on the element's own window and did not find one. It measured once at mount and applied that size; nothing watches the container afterwards, so the view will not re-fit when the window, a split pane or a sidebar changes its box. Everything else about the view works.
The fix
Load a ResizeObserver polyfill before creating the view, or call the view's own refresh()/resize() from your layout code when you change its container.
Reference
Covered in full at the API reference.