willowsystems / jSignature

jQuery plugin - draw signature in browser.
714 stars 266 forks source link

Issue with dyamic resizing on hidden container: height is wrong. #87

Open ryangriggs opened 6 years ago

ryangriggs commented 6 years ago

If jSignature is applied to a hidden container (i.e. a modal dialog, etc), the jSignature initialization routine does not take into account the final height of the container, thus rendering the signature box as small height as possible.

However, if you make the hidden container visible first, then apply $("#signature").jSignature(), the height of the signature box matches the container.

PeterTough2 commented 3 years ago

@ryangriggs Is there a work around for this as I am using a multi step form and the signature can't be on the first

ryangriggs commented 3 years ago

You may need to initialize jSignature while the box is visible, then hide it.