0

I have a react project and I would like to know a way to identify if the component with absolute property is leaving the screen.

Imagem before

Knowing that the component is leaving the screen, I can change the value of the right property and reposition the component on the screen, getting like this:

Image after

  • https://stackoverflow.com/questions/3437786/get-the-size-of-the-screen-current-web-page-and-browser-window?rq=1 – K Scandrett Jan 27 '22 at 21:14

0 Answers0