()
| 844 | }; |
| 845 | // The heights come from the card layout; the full one keeps them. |
| 846 | const onResize = () => { |
| 847 | if (layout === 'card') { |
| 848 | current = measure(headElement, probe); |
| 849 | geometry.current = current; |
| 850 | } |
| 851 | update(); |
| 852 | }; |
| 853 | // A layer or a toast arriving changes what the wrapper may pass |
| 854 | // through; a toast is measured again once it has slid in. |
| 855 | const layers = new MutationObserver(() => { |
no test coverage detected