brinley / jSignature

jQuery plugin for adding web signature functionality
http://www.unbolt.net/jSignature
694 stars 529 forks source link

Changing size of parent makes canvas incorrectly resized #146

Open RMY1 opened 6 years ago

RMY1 commented 6 years ago

Hi guys.

I am facing with strange behaviour when changing size of parent container. I think that might be related to https://github.com/brinley/jSignature/issues/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.