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

Cut off Text when using Quotes #79

Open
mbarkhau opened this issue Sep 24, 2021 · 1 comment
Open

Cut off Text when using Quotes #79

mbarkhau opened this issue Sep 24, 2021 · 1 comment

Comments

@mbarkhau
Copy link
Contributor

When text is at the bottom or right hand side of the diagram, it can be cut off. The elements appear to be there, so I guess there is something that's messing up the viewBox or image size. The renderer uses 0.6.2 and I've replicated the issue on https://ivanceras.github.io/svgbob-editor/

   !         !
   !         !
   !         '
   '       "123"
"version"  "(6bits)"
"(4bits)"

https://mbarkhau.keybase.pub/asciigrid/#vvE;AOAOA;AAARCgCgAiGBuArDNhMNkGLRDSDTDLBLWHVGSHTHZGfGeGLgYGWDSGZGUgSHgeGUoE

@ivanceras
Copy link
Owner

This looks like a miscalculation on the widths for the generated svg when there are double quotes. Putting some characters on the right will display the whole svg image just fine.

   !         !
   !         !
   !         '
   '       "123"
"version"  "(6bits)" ---
"(4bits)"

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

2 participants