stdweb icon indicating copy to clipboard operation
stdweb copied to clipboard

Feature request: Element.{clientWidth,clientHeight}

Open agausmann opened this issue 4 years ago • 0 comments

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 avatar Apr 06 '20 04:04 agausmann