-
Hi all, @squidfunk For my vector diagrams provided on a doc site I use diagrams.net integration via iframes. The integration looks like that in the markdown <script type="text/javascript" src="https://cdn.jsdelivr.net/gh/hellt/drawio-js@main/embed2.js" async></script>
<div class="mxgraph" style="max-width:100%;border:1px solid transparent;margin:0 auto; display:block;" data-mxgraph="{"page":3,"zoom":1.5,"highlight":"#0000ff","nav":true,"check-visible-state":true,"resize":true,"url":"https://raw.githubusercontent.com/srl-labs/containerlab/diagrams/containerlab.drawio"}"></div> this makes it possible to source vector graphics from a remote location, and this renders to: On a page load it all works fine, and I see TOC following my scroll, but once I click on a div with graphics, it expands up as expected, but when I close it, the TOC element disappears as it moves all the way up to the top of a screen. Here is a little animation showing that - https://gitlab.com/rdodin/pics/-/wikis/uploads/0c29b8fcb94ee5dde7182da2ab83d289/2022-05-18_14-53-01.mp4 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Thanks for reporting. I'd suspect there to be some errors in the console, maybe you can take a look and check. It might be some interaction between Material and your custom integration. Note that we can't offer support for customizations, but if it turns out that the solution is an easy fix, we can surely integrate it. However, I'd kindly ask you to narrow it down as much as possible. |
Beta Was this translation helpful? Give feedback.
Thanks for reporting. I'd suspect there to be some errors in the console, maybe you can take a look and check. It might be some interaction between Material and your custom integration. Note that we can't offer support for customizations, but if it turns out that the solution is an easy fix, we can surely integrate it. However, I'd kindly ask you to narrow it down as much as possible.