Fixed ngraphs>blocks bug + generic.ini changed

This commit is contained in:
l_samenv
2024-09-06 13:37:09 +02:00
parent e28467d30f
commit aa80454a2f
2 changed files with 19 additions and 2 deletions

View File

@ -1140,7 +1140,7 @@ let graphs = (function (){
* Creates the graphs or selection for each displayed graph
*/
function createGraphs() {
let n = Math.max(2, Math.floor(window.innerHeight / 200));
let n = Math.min(blocks.length,Math.max(2, Math.floor(window.innerHeight / 200)));
if (n != ngraphs) {
for (let i = ngraphs; i < n; i++) {