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

useElementSize returns NaN for SVG text element #3939

Open
7 tasks done
siaikin opened this issue Apr 28, 2024 · 0 comments · May be fixed by #3940
Open
7 tasks done

useElementSize returns NaN for SVG text element #3939

siaikin opened this issue Apr 28, 2024 · 0 comments · May be fixed by #3940

Comments

@siaikin
Copy link

siaikin commented Apr 28, 2024

Describe the bug

When I try to use useElementSize to layout a text element in SVG, I find that the width.value/height.value returned is always NaN.

Maybe fixed by #3940

Reproduction

https://play.vueuse.org/#N4IgDghgxg1hDmBTAziAXAbVAOwgW0XRADcBXRAWgBNE8BLEAGhGQHtSAnKQtEU7MDHhMQNZFA50wAFzqtsRAGrkABABFadFQAoAFhAA2AMxV1sKgGIdE2KLoCUp5CogqaxRAdZgz8FaVkDOmkATxcDLwB3ZxD2FWlWFUjJaUQVAFVsOg8OZEMVZTSAGToAIw4ISRQVI1YOAtUAJhUAMhUAZhFOAyJdaWkwZDQAemH+QXgAOihWPGGyShp6YaDS4bMaAA9JvAArVABfRhx8HhAAAQXSZERh5H1rKhE2Tm4icaERMQkpWXkiADKD0QVAaiHSN38gWCdBQky6HB6vD6AyGow+Uxmc0u5Gut3ulRB5wAjAAGSbEyak9bYLY7fYgI4nAhEHGIPHDGbWZ7sLhnDFfFA-GRyBS8ADCrAiiCgf3MrBMKBu2Fk+UKKkleDArGQMPkGWhshQCKRIBRgxGYwEQmms2GbI5XMQJPJlOpG0Q2z2hwAuswjHQDMa0KAAIJgMCTBboUCpLUGCCpQGKADiKk8tBs0hczmklSQ2YV-huAFEgwQVQC6AAvRBoAA62AAPFRsiprEYALz1ljEeAAdQqEcQHB7KmQoSD3ZAkToVGkujQNWCFBmKqzPYAfI2VCom8g++3EF2ewf4GPZ-PdNOyaSwJsx9ee7f72PiLDIgAhVibaeklT-reKi3luO67nuqSbNmHbTpB0gAErHmOIQ3rQoHmOBu5NtIyCQNgm6NKSjQACzDMSjRkU2ww4Xh24YVh1GetIdEMWedFUa2xCbs8wrSEQdBanU2bAMWiBlpmlY1mkBw1BwswqAA5A6NycnUiAKY2AnahwwlHkYjBJImdgqDJRhyXgikLApADcjaNmuE7xExiEmJ2enaPYtm2PIbBBpMXjwNocEufY9k+bpl4LgZuiIHQ8B9CZKhuXi4kVtIVa1kFznHp5jaREZujaBgkW6NFsXxdIfo6MQjidpuKgOVKiD+awgU1QZIkCQQraJnW8QcKoBy5QoByjUAA

System Info

VueUse playground

Used Package Manager

npm

Validations

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

Successfully merging a pull request may close this issue.

1 participant