svgbob icon indicating copy to clipboard operation
svgbob copied to clipboard

Cut off Text when using Quotes

Open mbarkhau opened this issue 4 years ago • 1 comments
trafficstars

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

mbarkhau avatar Sep 24 '21 23:09 mbarkhau

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)"

ivanceras avatar Sep 25 '21 23:09 ivanceras