diff --git a/source/app/web/statics/app.js b/source/app/web/statics/app.js index ae70f4c3..d77b51c6 100644 --- a/source/app/web/statics/app.js +++ b/source/app/web/statics/app.js @@ -191,7 +191,7 @@ //Resize mock image mockresize() { const svg = document.querySelector(".preview .image svg") - if (svg) { + if ((svg)&&(svg.getAttribute("height") === 99999)) { const height = svg.querySelector("#metrics-end")?.getBoundingClientRect()?.y-svg.getBoundingClientRect()?.y if (Number.isFinite(height)) svg.setAttribute("height", height)