fix local forecast paging
This commit is contained in:
parent
7a129c1cd3
commit
11c826a2af
1 changed files with 1 additions and 1 deletions
|
|
@ -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`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue