brinley / jSignature

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

Not formatting on initialization #100

Open BitStinker opened 8 years ago

BitStinker commented 8 years ago

In a jQuery mobile environment, using the pagechange event...

If I do this:

$( '#signoff' ).jSignature();

I get a signature canvas the wrong height.

If I do this:

$( '#signoff' ).jSignature(); $( '#thepage' ).trigger( 'resize' );

I get the correct height canvas.

brinley commented 8 years ago

I havent used jQuery mobile recently but have you tried setting a fixed height on jsignature container or trying to intialise it on jQuery mobile's pageload instead?

BitStinker commented 8 years ago

I tried both. The 'resize' technique is quick and easy, so that's what I've been using.