Signature_pad: Bootstrap 3 modal issue.

Created on 4 May 2016  ·  4Comments  ·  Source: szimek/signature_pad

I'm using the signature pad in a modal. The signature won't draw until you either rotate or resize your window then you can draw.

A link to source and a demo of the issue http://xeroharm.com.au/SignTest/modal.html

Most helpful comment

Fixed by adding:

$('#myModal').on('shown.bs.modal', function (e) {
resizeCanvas()
drawSignature()
})

All 4 comments

Fixed by adding:

$('#myModal').on('shown.bs.modal', function (e) {
resizeCanvas()
drawSignature()
})

is the drawSignature a method you created?

Fixed by adding:

$('#myModal').on('shown.bs.modal', function (e) {
resizeCanvas()
drawSignature()
})

You saved my day man. Thank you very much for sharing!

Fixed by adding:

$('#myModal').on('shown.bs.modal', function (e) {
resizeCanvas()
drawSignature()
})

Adding it where? please

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jsruok picture jsruok  ·  11Comments

kevinchung1026 picture kevinchung1026  ·  5Comments

siggifv picture siggifv  ·  3Comments

chitgoks picture chitgoks  ·  5Comments

auam88 picture auam88  ·  4Comments