I have problem with the size and the thickness of the signature image when on different screen size #801
Unanswered
oktaviannikky
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Do you handle the DPR? https://github.com/szimek/signature_pad?tab=readme-ov-file#handling-high-dpi-screens |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When i draw the signature in pc screen and display in the page, the size and thickness is really small, but when i drew in smaller screen(ipad and below), strangely the size and the thickness is big and bold and sometimes if i drew too below of the canvas it somehow got crop, i already put css style to constrain the max width and style, but don't seem to work:
.signature-img { max-width: 100%; /* Let the image fill up to the container width */ max-height: 150px; /* Limit the height of the image */ width: auto; /* Maintain aspect ratio */ height: auto; /* Maintain aspect ratio */ display: block; /* Remove inline gaps */ margin: 0 auto; /* Center the image */ }
this is how it looks like in ipad and smaller screen:

and this is how it looks like in screen bigger than ipad:

Beta Was this translation helpful? Give feedback.
All reactions