Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flowchart text overflow at non-zero zoom level #97

Open
spanishgum opened this issue Feb 15, 2021 · 6 comments
Open

Flowchart text overflow at non-zero zoom level #97

spanishgum opened this issue Feb 15, 2021 · 6 comments

Comments

@spanishgum
Copy link

I've noticed when I open a preview of markdown (containing a flow chart) at non-zero zoom level, the text overflows.

I can fix the issue by closing the preview, going back to zero zoom level, and re-opening the preview. Then I can zoom back in and the text is not overflowed.

But as soon as the preview is refreshed (by visiting a different markdown, or hitting refresh), the preview is re-rendered with text overflow again.

I tried changing the default zoom config with window.zoomLevel, but I get the same results.

@Lucent
Copy link

Lucent commented Mar 14, 2021

I'm at zero (reset) zoom level and seeing text overflow on stateDiagram-v2 when using descriptions like
state "some long string" as SLS

@manuth
Copy link

manuth commented Mar 26, 2021

I'm facing the same issue when having windows' display scaling set to something other than 100% (125% in my case).
I'd love to see this issue fixed as I'm mostly using mermaid on my 4K laptop.

@mrchantey
Copy link

possibly related to #89

@manuth
Copy link

manuth commented Apr 2, 2021

@mrchantey you're right
Imo we're talking about the same issue here

@mrchantey
Copy link

same problem can be found on another extension, mermaid preview. Its possible the problem has to do with how vs code is handling html rendering.

@mjbvz
Copy link
Owner

mjbvz commented Dec 6, 2022

Please share the text of a diagram that demonstrates the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants