Improved HTML output sizing

This commit is contained in:
n1474335 2023-03-08 18:08:17 +00:00
parent 7eda2fd4a6
commit 80e8b2339d
5 changed files with 17 additions and 9 deletions

View file

@ -78,7 +78,7 @@ The graph shows the IC of the input data. A low IC generally means that the text
<script type='application/javascript'>
var canvas = document.getElementById("chart-area"),
parentRect = canvas.parentNode.getBoundingClientRect(),
parentRect = canvas.closest(".cm-scroller").getBoundingClientRect(),
ic = ${ic};
canvas.width = parentRect.width * 0.95;