Answer the question
In order to leave comments, you need to log in
How to scale Canvas to fit DIV?
Good evening.
There is no way to adjust the canvas to the size of the div, all the time in full screen. Please help.
The model itself: test.inqseo.com
You can download it from the link: test.inqseo.com/test.zip
And the second problem:
I can’t open the page with the model in the browser and edit the script in notepad at the same time - it hangs hard. If I close the browser - everything is fine. If I close the scripts in notepad and leave the browser open, everything is fine too. What is it? Has anyone come across?
Answer the question
In order to leave comments, you need to log in
In index_main.js your dimensions are taken from the dimensions of the window (window.width)
Change so that they are taken from the parent div.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question