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

Fix incorrect display when having multiple monitors #21

Merged
merged 1 commit into from
Dec 4, 2018

Conversation

m-damien
Copy link
Collaborator

@m-damien m-damien commented Dec 4, 2018

Use window.screen.width/height to obtain the screen size of the monitor currently displaying the webpage.
Then, find the correct display by looking for the one with the correct size.

This way, the rectangle should always be the size of a credit card, no matter what monitor is rendering the webpage.

@casiez casiez merged commit cc81c2e into INRIA:gh-pages Dec 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants