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

"Fit to window" button makes scroll bars appear in Chrome (Windows) #50

Open
pobch opened this issue Jul 20, 2023 · 0 comments
Open

"Fit to window" button makes scroll bars appear in Chrome (Windows) #50

pobch opened this issue Jul 20, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@pobch
Copy link
Owner

pobch commented Jul 20, 2023

Steps

1
2
3

  1. Windows 10, Chrome
  2. Click "fit to window" button button 1-2 times
  3. BUG: scroll bars appear

Note: This bug does not occur in Firefox (Windows)

Causes

The height or width of <canvas/> exceeds the actual viewport value ~1px. This might be a rounding issue from window.innerHeight/innerWidth or document.documentElement.clientHeight/clientWidth.

@pobch pobch added the bug Something isn't working label Jul 20, 2023
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

1 participant