From e3e048f6b6f22ea72f630abecbc5869a8be82788 Mon Sep 17 00:00:00 2001 From: thewhodidthis Date: Fri, 4 Aug 2023 22:09:39 +0100 Subject: [PATCH] js/descriptions: skip attempts to set scrollHeight --- src/descriptions.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/descriptions.js b/src/descriptions.js index e3a0deb..3563259 100644 --- a/src/descriptions.js +++ b/src/descriptions.js @@ -19,7 +19,6 @@ function toggleSearchResults(btn) { if (MyAltTextOrg.desc.resultIsDown) { const main = document.getElementById("main-area") updateDescriptionDisplay() - main.scrollHeight = 0 } else { hideResultDisplay() } @@ -204,8 +203,6 @@ function renderDescriptions() { let descEle = makeDescriptionEle(description) descriptionsEle.appendChild(descEle) }) - - descriptionsEle.scrollHeight = scrollPx } descriptionWrapper.style.display = "flex" } @@ -390,4 +387,4 @@ function splitText(text, maxLen) { } return result; -} \ No newline at end of file +}