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

Feature request: Element.{clientWidth,clientHeight} #399

Open
agausmann opened this issue Apr 6, 2020 · 0 comments · May be fixed by #400
Open

Feature request: Element.{clientWidth,clientHeight} #399

agausmann opened this issue Apr 6, 2020 · 0 comments · May be fixed by #400

Comments

@agausmann
Copy link

MDN docs: clientWidth, clientHeight

These properties are useful for getting the actual width and height of an element as it is displayed on the webpage, and it is the recommended way to properly calculate the visible width/height/aspect of an HTML canvas, since Canvas.{width,height} doesn't account for changes in size made by CSS.

@agausmann agausmann linked a pull request Apr 6, 2020 that will close this issue
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