Search code examples
google-chromefirefoxtextsvg

SVG being cut off


I found an answer on here that I dont understand. Unfortunately i am unable to comment yet.

Here is the link to the answer, SVG renders but gets cut off in Firefox only - why?

The Accepted answer by Boris Zbarsky has a description on why it is not working. I do not fully understand this answer and wondering a way to correct this issue so I can make it work on Firefox.

For my case, the SVG text element is there on all browsers, In Internet explorer all 3 texts are visible, In Firefox and chrome any of the SVG text elements are cut off if they are more than 1/4 to the right of the screen. If I move them through the developer tab to the left of the imaginary cut off they show up.

There is no div or block along this strange area that could be hiding the SVG text.

This is a local implementation.

Any help on what is happening would be very helpful.


Solution

  • I had similar problem. Try to add css property:

    overflow: visible