I fear that this will break with a different chrome version. But I found no other way than this.
There is no working/reliable dynamic way to identify the available max height in headless mode.
The numbers result from manual tests with a custom pixel grid and chrome 97.0.4688.2.
I fear that this will break with a different chrome version. But I found no other way than this. There is no working/reliable dynamic way to identify the available max height in headless mode. The numbers result from manual tests with a custom pixel grid and chrome 97.0.4688.2.
Also tested on 96.0.4664.45, works fine there.
fixes #42