brinley / jSignature

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

Jsignature bootstrap modal #49

Closed asoet closed 8 years ago

asoet commented 10 years ago

Jsignature doesn't work in the bootstrap 3 modal view. Is this true?

$("#AddSignatureModal").on('show.bs.modal', function () { $("#signature").jSignature();

    })
brinley commented 10 years ago

I don't see why it won't work within a modal. If the signature is initialising without any errors then it should work. If you try to sign and nothing appears then something is throwing off the calculations of x and y.

josx commented 9 years ago

http://stackoverflow.com/questions/14444100/getting-jsignature-to-work-with-twitter-bootstrap-modal/14449134#14449134

brinley commented 8 years ago

The stackoverflow post above seems to have a valid solution

$('#myModal').on('show.bs.modal', function (e) {
$("#signature").jSignature(); $("#signature").resize(); });