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

Changing size of parent makes canvas incorrectly resized #146

Open
RMY1 opened this issue Jan 12, 2018 · 0 comments
Open

Changing size of parent makes canvas incorrectly resized #146

RMY1 opened this issue Jan 12, 2018 · 0 comments

Comments

@RMY1
Copy link

RMY1 commented Jan 12, 2018

Hi guys.

I am facing with strange behaviour when changing size of parent container.
I think that might be related to #72, but unfortunatelly workaround does not help(or it was not applied correctly)

First of all I added styles to canvas:
canvas.jSignature {
height: 100% !important;
}
after jsignature initialisation it seems to work fine
https://www.screencast.com/t/DZUUdx76dXJT

after changing size of parent container(after rotate or something else) it looks like:
https://www.screencast.com/t/hDTbYAgLQ1t1

Drawn image is being resized with some delay after changing parent container size.

Is there a way to keep drawn image in parent container's borders?
Thank you in advance.

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