Why Nostr? What is Njump?
2024-08-01 11:31:06

Thomas Michael Semmler on Nostr: I am a bit at the end of my rope here. In an #svg element I have another nested svg ...

I am a bit at the end of my rope here. In an #svg element I have another nested svg element. This nested svg element contains a text-element. I am attempting to calculate whether the <text> exceeds its direct parent <svg>, as its contents are changing with user input.

But the problem is that with the growing <text> element, the direct <svg> parent is also growing, regardless of viewbox or width/height or overflow attributes.

But I need it to not grow. What do I do?

#svg #javascript #webdev
Author Public Key
npub1lpjsp4e4aguw8frxw67dwpspzygj06e5d25qvupyqaev3dema0zssa5j0h