Форум

Сообщения, созданные пользователем lucaslamounier08
19 августа 2019 16:43
Hi everyone.

I'm trying to set the Canvas position to FIXED, but I don't know how.
Only with fixed position my project works, but I have to edit it manually on console mode.

I can edit the "container_id" position to fixed, but bellow that, on Canvas I can't.

What I have now:
<div id="container_id" style="position: fixed; width: 500px; height: 500px"><canvas width="500" height="500" style="position: absolute;left: 0px;top: 0px;width: 500px;height: 500px;"></canvas></div>


What I want:
<div id="container_id" style="position: fixed; width: 500px; height: 500px"><canvas width="500" height="500" style="position: fixed;left: 0px;top: 0px;width: 500px;height: 500px;"></canvas></div>


FIXED: Edit the file b4w.simple.min.js, line 2043

f.style.position="fixed";