willowsystems / jSignature

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

Change size of signature area #65

Open tienw opened 8 years ago

tienw commented 8 years ago

Anyone know how to change the size of signature area. I try to modify the width and height using css and it does not work. Thank you

harwoodspike commented 8 years ago

You can pass them into jSignature. $('signature').jSignature({'width': '100', 'height': '100'});

TheKuddlyOne commented 8 years ago

Anyone know if it's possible to give width and height relative values (%, etc)? EDIT: never mind, found this: https://github.com/brinley/jSignature/issues/17

danicholls commented 7 years ago

Are you sure that's the same plugin, @TheKuddlyOne ? They don't have the same project pages.

nikonov91-dev commented 5 years ago

more over you may use sizeRation to change your field sizes according to scale, not hardcoded width/heigth.

just elem.jSignature({sizeRatio: 1});

default sizeRatio = 4