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

backplateImgUrl does not adjust to fit to the canvas when zoom in/zoom out #199

Open
hoan-anh opened this issue Feb 18, 2025 · 0 comments
Open

Comments

@hoan-anh
Copy link

hoan-anh commented Feb 18, 2025

Describe the bug
backplateImgUrl does not adjust to fit to the canvas when zoom in/zoom out, its size stays the same.

Painterro version
v1.2.87

To Reproduce
Steps to reproduce the behavior:

  1. Initiate Painterro with the backplateImgUrl parameter:
    Painterro({
    backplateImgUrl: 'image-url'
    }).show()

  2. Use Ctrl + scroll to zoom in/out of the canvas

Expected behavior
The backplate img should also zoom in/out to fit with the canvas

Screenshots
Before zooming:

Image

After zooming in:

Image

Browser
Google Chrome 133 on Windows 11

@hoan-anh hoan-anh changed the title backplateImgUrl does not fit to the canvas when zoom in/zoom out backplateImgUrl does not adjust to fit to the canvas when zoom in/zoom out Feb 18, 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