I wonder how I can set the size of the signature-pad so it fits the screen properly…
The with is fine, but the height is too long. I have tried to set it to window.innerHeight and canvas.offsetHeight, but it’s still too long… (Phone in landscape-mode)
This is how I set the canvas now:
canvasResize() {
let canvas = document.querySelector('canvas');
canvas.width = window.innerWidth;
canvas.height = canvas.clientHeight;
this.signaturePad.clear();
}
Thanks for answers