legalthings / angular-signature

HTML5 canvas based smooth signature drawing as angularJS directive (http://szimek.github.io/signature_pad/)
MIT License
105 stars 91 forks source link

width & heigth auto #61

Closed gine closed 7 years ago

gine commented 7 years ago

I would like to have the height automatically. Whit this way to set pad dimensions is impossible to create a code usable on mobile device.

jasny commented 7 years ago

The width and height you specify is the width of and height of the resulting image, not of the screen. The screen width and height is response, maintaining the aspect ratio of the image. Check the demo.