Skip to content

WebViewMode 1 and 2 acts the same #560

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

Open
denysbohatyrov opened this issue Mar 3, 2025 · 0 comments
Open

WebViewMode 1 and 2 acts the same #560

denysbohatyrov opened this issue Mar 3, 2025 · 0 comments

Comments

@denysbohatyrov
Copy link

denysbohatyrov commented Mar 3, 2025

In docs it say next:

View Mode:

0: no restrictions

1: restrict the crop box not to exceed the size of the canvas.

2: restrict the minimum canvas size to fit within the container. If the proportions of the canvas and the container differ, the minimum canvas will be surrounded by extra space in one of the dimensions.

3: restrict the minimum canvas size to fill fit the container. If the proportions of the canvas and the container are different, the container will not be able to fit the whole canvas in one of the dimensions.

If you set viewMode to 0, the crop box can extend outside the canvas, while a value of 1, 2, or 3 will restrict the crop box to the size of the canvas. viewMode of 2 or 3 will additionally restrict the canvas to the container. There is no difference between 2 and 3 when the proportions of the canvas and the container are the same.

But no matter how you change the settings this If the proportions of the canvas and the container differ, the minimum canvas will be surrounded by extra space in one of the dimensions. cnnot be achieved

@denysbohatyrov denysbohatyrov changed the title WebViewMode 1 and acts the same WebViewMode 1 and 2 acts the same Mar 3, 2025
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

No branches or pull requests

1 participant