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

environment variable WBO_MAX_BOARD_SIZE_X to give max width of board (closes #118) #137

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

droundy
Copy link
Contributor

@droundy droundy commented Sep 24, 2020

I just added a configuration variable MAX_BOARD_SIZE_X. I also made board.js obey the existing MAX_BOARD_SIZE (which it wasn't), and made it so you can't zoom out beyond the width of the board. The latter isn't technically necessary, and could in cases of a very wide window be annoying, but I think it's better than letting users confuse themselves with a bunch of white space that they can't write on.

By opening a pull request, I certify that I hold the intellectual property of the code I am submitting, and I am granting the initial authors of WBO a perpetual, worldwide, non-exclusive, royalty-free, and irrevocable license to this code.

@lovasoa lovasoa linked an issue Sep 25, 2020 that may be closed by this pull request
client-data/js/board.js Outdated Show resolved Hide resolved
Copy link
Owner

@lovasoa lovasoa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, I'm ready to merge that. I agree that getting rid of the uneditable blank spaces is worth it, even if it is an inconvenience on screens with an unusual aspect ratio.

client-data/js/board.js Outdated Show resolved Hide resolved
client-data/js/board.js Outdated Show resolved Hide resolved
@lovasoa
Copy link
Owner

lovasoa commented Sep 25, 2020

Can you have a look at the failing tests too ?

@droundy
Copy link
Contributor Author

droundy commented Sep 25, 2020

It looks like the failing tests assume a given transformation matrix, which is getting broken by my code that sets the minimum zoom level.

On second thought, it seems odd that the max scaling should be reached, unless either the window is very big in the test, or the max board size is small...

droundy and others added 3 commits September 25, 2020 06:24
@lovasoa
Copy link
Owner

lovasoa commented Sep 25, 2020

It looks like the cursor element (to which the transform should be applied) is not even present

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.

Configuration to set the width of the board?
2 participants