jSignature icon indicating copy to clipboard operation
jSignature copied to clipboard

jSignature setData does not scale with the signature box

Open onexdata opened this issue 11 years ago • 1 comments

If I restore a signature using...

$sig.jSignature("setData", 'data:'+base30Signature);

The restored signature does not scale with the signature box, so if the box is smaller when I restore the signature than it originally was when I called the getData method, the signature will be clipped, if the box is larger, the signature will be too small.

Is scaling restored signatures just not implemented, or am I missing something?

onexdata avatar Aug 27 '14 09:08 onexdata

Its not implemented. You can scale a non editable signature by using CSS widths to resize but not an editable signature.

On Wed, Aug 27, 2014 at 2:48 AM, onexdata [email protected] wrote:

If I restore a signature using...

$sig.jSignature("setData", 'data:'+base30Signature);

The restored signature does not scale with the signature box, so if the box is smaller, the signature will be clipped, if the box is larger, the signature will be too small.

Is scaling restored signatures just not implemented, or am I missing something?

— Reply to this email directly or view it on GitHub https://github.com/brinley/jSignature/issues/67.

Brinley Ang Software Developer & Consultant http://www.unbolt.net

brinley avatar Aug 28 '14 04:08 brinley