Closed sparrow84001 closed 1 month ago
Hello, can you share us more details ? maybe share your code or what don't work ? Have you an error message ?
Hello, Thank you for your reply. When I use div (div id="editor" touch-action="none">/div) all functions work but the writing area is not showing and I can't write. Then I used this canvas (canvas id="editor" touch-action="none" style="border: 2px solid black;"></canvas) this time all functions were working but only the writing ink was not showing. This div uses pic.
Hello,
According to the images, the canvas is not visible. may be because the svg layers (data-layer="CAPTURE" and data-layer="MODEL") are positioned absolutely with 100% height. container (in our examples <div id="editor">
) must therefore be of a defined height.
If that's not the cause, maybe you could share your code with us?
Ok, I will share my code. Note that this is the PHP blade page.
ok, it's definitely a problem with the height of the container. putting "height:100%" on the #editor div does not give a height and a relative height does not work if its parent does not have a height defined. You must either:
Ok, thanks It works. I used "calc(100vh - 166px);" Thanks for helping.
You're welcome
Hello,