Often, window.innerWidth and window.innerHeight give unsatisfying values, as in this example.

In the same example, I use a workaround to adapt exactly a div to the browser visual layout (the class hackedWindowSizes, based on element.getBoundingClientRect ), but I don't like it vary much.

Is there a standard instrument to make the same thing?

0

There are 0 best solutions below