vscode-mermaid-preview icon indicating copy to clipboard operation
vscode-mermaid-preview copied to clipboard

Text overflows on mermaid graphs

Open 4lph4-Ph4un opened this issue 5 years ago • 4 comments

Expected behaviour

graph LR
D(Dispatcher)-->S1(Saga)
D(Dispatcher)-->R(Reducer)
S1(Saga)-->G(Generator)
R(Reducer)-->S2(Store)
G(Generator)-->R(Reducer)

Actual behaviour

vscmpissue

4lph4-Ph4un avatar May 26 '19 07:05 4lph4-Ph4un

I cannot replicate the rendering. Can you share details about your OS, vscode version that can help others identify the root cause?

vstirbu avatar May 26 '19 14:05 vstirbu

Ah, oh course! My apologies!

Windows 10, VSCode 1.34.0

4lph4-Ph4un avatar May 26 '19 15:05 4lph4-Ph4un

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.

mrtzcspr avatar Jan 29 '21 15:01 mrtzcspr

I've tried the sequence on Mac and it does not behave the same. I still get the overflow.

vstirbu avatar Jan 31 '21 21:01 vstirbu