From 11c826a2afdf399ecfadc4b2cd0e338317dd50e9 Mon Sep 17 00:00:00 2001 From: Matt Walsh Date: Fri, 16 May 2025 14:42:11 -0500 Subject: [PATCH] fix local forecast paging --- server/scripts/modules/localforecast.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/scripts/modules/localforecast.mjs b/server/scripts/modules/localforecast.mjs index 48486b5..da02279 100644 --- a/server/scripts/modules/localforecast.mjs +++ b/server/scripts/modules/localforecast.mjs @@ -47,7 +47,7 @@ class LocalForecast extends WeatherDisplay { forecastsElem.append(...templates); // increase each forecast height to a multiple of container height - this.pageHeight = forecastsElem.parentNode.scrollHeight; + this.pageHeight = forecastsElem.parentNode.offsetHeight; templates.forEach((forecast) => { const newHeight = Math.ceil(forecast.scrollHeight / this.pageHeight) * this.pageHeight; forecast.style.height = `${newHeight}px`;