We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
offsetHeight/offsetWidth do not work with elements often in the DOM that are not actually HTML Elements, for example, SVG elements.
offsetHeight
offsetWidth
I'd recommend using clientHeight/clientWidth when the offset versions are undefined, but it could be considered a breaking change.
clientHeight
clientWidth
Another possibility would be to allow the passing of a callback to override getSize.
getSize
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
offsetHeight
/offsetWidth
do not work with elements often in the DOM that are not actually HTML Elements, for example, SVG elements.I'd recommend using
clientHeight
/clientWidth
when the offset versions are undefined, but it could be considered a breaking change.Another possibility would be to allow the passing of a callback to override
getSize
.The text was updated successfully, but these errors were encountered: