We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f28142f commit a221c78Copy full SHA for a221c78
web_src/js/markup/mermaid.ts
@@ -61,7 +61,8 @@ export async function renderMermaid() {
61
iframe.style.height = `${iframe.contentWindow.document.body.clientHeight}px`;
62
};
63
64
- // update height when element becomes visible, for example when the diagram is inside a details+summary block
+ // update height when element's visibility state changes, for example when the diagram is inside
65
+ // a <details> + <summary> block and the <details> block becomes visible upon user interaction
66
(new IntersectionObserver(() => {
67
updateIframeHeight();
68
}, {root: document.documentElement})).observe(iframe);
0 commit comments