position of a div moves when zoomed out even though its is offset by another div via js
SO i wanted to postion this div with respect to another div, so i used getBoundingClientRect() to get the refernce div and offsetted it by px , now im having issues where when i zoomed out its not next to the reference div, how do i fix this?
3 Replies
You would need to set up an event listener on the zoom probably because you (Im guessing) have set the x & y based off the details before zoom
it worked.
Woo. Love the easy wins