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

ElementRect implementation is broken #216

Open
nmzein opened this issue Feb 9, 2025 · 3 comments
Open

ElementRect implementation is broken #216

nmzein opened this issue Feb 9, 2025 · 3 comments

Comments

@nmzein
Copy link

nmzein commented Feb 9, 2025

Describe the bug

It seems like theres no real way to get the element rect stats without polling using getBoundingClientRect. Please see this comment about the ElementRect util from runed to see how to break it: sveltejs/svelte#13412 (comment).

Reproduction

sveltejs/svelte#13412 (comment)

Logs

System Info

N/A

Severity

annoyance

@huntabyte
Copy link
Member

We are likely going to deprecate ElementRect as there are so many edge cases that make this very complicated and inefficient to keep.

@nmzein
Copy link
Author

nmzein commented Feb 15, 2025

Yeah from what I understand its pretty much impossible to do without polling so I think deprecating it is better than having it be broken or using polling under the hood which I think people should be understanding before they opt into. Thanks.

@huntabyte
Copy link
Member

We're exploring options right now.

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

No branches or pull requests

2 participants