Davidobot / love.js

LÖVE ported to the web using Emscripten, updated to the latest Emscripten and LÖVE (v11.5)
MIT License
605 stars 27 forks source link

Canvas size loads with size 1 when zoomed out on Chromium browser with window.resizable = true #49

Open Sheepolution opened 2 years ago

Sheepolution commented 2 years ago

When you set window.resizable = true in the config file, and you load the game in a Chromium browser while zoomed out, the canvas will get a size of width="1" height="1". Increasing the canvas afterwards will not help. Setting a minwidth and minheight does not solve this.

Note: When testing this out I found that after a while the browser has the game cached somehow, preventing the bug from reappearing. So it might look as if it's solved, but when you open it in a different tab or browser you will see that this is not the case.

Davidobot commented 2 years ago

Does this fix work to solve the issue? https://github.com/Davidobot/love.js/issues/16#issuecomment-818620056

Sheepolution commented 2 years ago

I'm fairly sure I tried that and it didn't work.