souporserious / get-node-dimensions

Get accurate element dimensions, even if it's hidden!
MIT License
20 stars 5 forks source link

Top is not implemented correctly, or not working (scroll top) #11

Open NHuebner1983 opened 5 years ago

NHuebner1983 commented 5 years ago

Is there any way you can provide a scroll aware modification?

For example, if you get the element's top, you get 200. If you scroll down, the top returned is offset by the scroll position.

You can reproduce this by copying the dimensions provided and creating a new div element on the page.