Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Sheepolution opened this issue Oct 8, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@Sheepolution
Copy link

Sheepolution commented Oct 8, 2021

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
Copy link
Owner

Does this fix work to solve the issue? #16 (comment)

@Sheepolution
Copy link
Author

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

@Davidobot Davidobot added the bug Something isn't working label Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants