@ruckc/truss-graph 1.18.2 → 1.18.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Graph.svelte +4 -1
- package/package.json +1 -1
package/dist/Graph.svelte
CHANGED
|
@@ -295,7 +295,10 @@
|
|
|
295
295
|
// the page) their containing block and scales them. Move them to a layer outside it, then re-place them.
|
|
296
296
|
const lift = () => {
|
|
297
297
|
const found = viewport.querySelectorAll('.tr-popover[data-fixed="true"]');
|
|
298
|
-
for (const el of found)
|
|
298
|
+
for (const el of found) {
|
|
299
|
+
overlay.append(el);
|
|
300
|
+
(el as HTMLElement).showPopover(); // moving a top-layer popover out of the document hides it
|
|
301
|
+
}
|
|
299
302
|
if (found.length) overlay.dispatchEvent(new Event('scroll')); // Popover re-places itself on scroll
|
|
300
303
|
};
|
|
301
304
|
const mo = new MutationObserver(lift);
|