-
-
Notifications
You must be signed in to change notification settings - Fork 417
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
base: master
Are you sure you want to change the base?
Conversation
…aximum width of board (closes lovasoa#118)
There was a problem hiding this 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.
Can you have a look at the failing tests too ? |
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... |
Co-authored-by: Ophir LOJKINE <[email protected]>
Co-authored-by: Ophir LOJKINE <[email protected]>
Co-authored-by: Ophir LOJKINE <[email protected]>
It looks like the cursor element (to which the transform should be applied) is not even present |
I just added a configuration variable MAX_BOARD_SIZE_X. I also made
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.board.js
obey the existingMAX_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.