Brantron / john_hancock

A Rails gem for custom signature form fields
MIT License
114 stars 27 forks source link

Canvas Size #9

Closed austinklenk closed 7 years ago

austinklenk commented 7 years ago

I tried doing a canvas width with css say 500px, it throws off the drawing on the canvas. how can i make the canvas size bigger without throwing off the drawing points.

css div

canvas#JohnHancock-canvas {
    background-color: #fff;
    border: 1px solid #000;
    width: 400px;
  }

help..

Brantron commented 7 years ago

Hey, looking now!

Brantron commented 7 years ago

Please install v.0.1.2 which I just pushed. This updates the canvas JS library and adds some sizing fixes.

austinklenk commented 7 years ago

Thanks for the quick reply! that works perfectly!