-
Notifications
You must be signed in to change notification settings - Fork 82
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
Handle non-zero border on viewer container #233
Labels
Comments
I think a note and maybe an assert is enough. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When a non-zero border is used the library does not behave properly because the canvas is shifted and it is not entirely shown because of the fact that offset* values are used. This leads to the following when having top and left borders.
Relevant reference:
https://developer.mozilla.org/en-US/docs/Web/API/CSS_Object_Model/Determining_the_dimensions_of_elements
Currently the library does not support non-zero border. Maybe a note about this in the docs is enough for now.
The text was updated successfully, but these errors were encountered: