Describe the bug
In Chrome, using bind:offsetHeight on a component that immediately changes size does not trigger a change in the offsetHeight variable:
https://codesandbox.io/s/upbeat-hill-ilkqt?fontsize=14&hidenavigation=1&module=%2FApp.svelte&theme=dark
This does not seem to happen in Firefox or Safari, but it does happen in Chrome.
To Reproduce
https://codesandbox.io/s/upbeat-hill-ilkqt?fontsize=14&hidenavigation=1&module=%2FApp.svelte&theme=dark
Expected behavior
offsetHeight should be something close to 800 (in the example above)
Notes
Is there a reason Svelte doesn't attempt to use a ResizeObserver for resize detection?
Describe the bug
In Chrome, using
bind:offsetHeighton a component that immediately changes size does not trigger a change in theoffsetHeightvariable:https://codesandbox.io/s/upbeat-hill-ilkqt?fontsize=14&hidenavigation=1&module=%2FApp.svelte&theme=dark
This does not seem to happen in Firefox or Safari, but it does happen in Chrome.
To Reproduce
https://codesandbox.io/s/upbeat-hill-ilkqt?fontsize=14&hidenavigation=1&module=%2FApp.svelte&theme=dark
Expected behavior
offsetHeightshould be something close to800(in the example above)Notes
Is there a reason Svelte doesn't attempt to use a ResizeObserver for resize detection?