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
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
Most helpful comment
Fixed by adding:
$('#myModal').on('shown.bs.modal', function (e) {
resizeCanvas()
drawSignature()
})