Answer the question
In order to leave comments, you need to log in
Canvas doesn't work if parent has display none?
I made a switch to show / hide the contents of the div main in js
document.getElementById('main').style.display = 'block';
<div class="main" style="display:none">
<div class="col-sm-8">
<div class="view-wrapper">
<div id="container">
<canvas id="image"></canvas>
</div>
</div>
</div>
<!-- еще какие то коды -->
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question