Closed 4lph4-Ph4un closed 2 years ago
I cannot replicate the rendering. Can you share details about your OS, vscode version that can help others identify the root cause?
Ah, oh course! My apologies!
Windows 10, VSCode 1.34.0
Hi, at least on Windows 10 with latest vscode and latest vscode-mermaid-preview I can reproduce the issue by setting a zoom level below 100% for vscode (Menu Selection: View --> Appearance --> Zoom Out).
When the zoom level is reset (Menu Selection: View --> Appearance --> Reset Zoom) it works again without overflows when the mermaid preview is triggered again.
So somehow the global zoom level changes a parameter how the preview image is generated.
I've tried the sequence on Mac and it does not behave the same. I still get the overflow.
Expected behaviour
Actual behaviour