Support getBoundingClientRect()
See original GitHub issueThe returned width and height should also be also available as what we get from el.getBoundingClientRect().width
& el.getBoundingClientRect().height
sometimes we need exact sitze and i didn’t see anything in the Readme that this library supports that already, please correct me if I’m wrong.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Element.getBoundingClientRect() | Can I use... Support tables ...
Method to get the size and position of an element's bounding box, relative to the viewport. Usage % of. all users, all tracked,...
Read more >Element.getBoundingClientRect() - Web APIs | MDN
The Element.getBoundingClientRect() method returns a DOMRect object providing information about the size of an element and its position relative ...
Read more >HTML DOM Element getBoundingClientRect() - W3Schools
The getBoundingClientRect() method returns a DOMRect object with eight properties: left, top, right, bottom, x, y, width, height.
Read more >Browser Compatibility of Element.getBoundingClientRect()
Element.getBoundingClientRect() on Chrome is fully supported on 4-106, partially supported on None of the versions, and not supported on below 4 ...
Read more >Element.getBoundingClientRect() - Support Tables
Element.getBoundingClientRect(). Method to get the size and position of an element's bounding box, relative to the viewport.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks, I was thinking maybe this library will go in the direction like Solid.js primitive https://www.npmjs.com/package/@solid-primitives/resize-observer but totally ok if not, this is now solved for me and can be closed. Thanks
Got it 👍