fix full screen vertical and radar

This commit is contained in:
Matt Walsh
2023-08-14 21:31:58 -05:00
parent 2c31484e99
commit 2c9e15bed0
5 changed files with 5 additions and 5 deletions

View File

@@ -216,7 +216,7 @@ class Radar extends WeatherDisplay {
// get image offset calculation
// is slides slightly because of scaling so we have to take a measurement from the rendered page
const actualFrameHeight = this.elem.querySelector('.frame').getBoundingClientRect().height;
const actualFrameHeight = this.elem.querySelector('.frame').scrollHeight;
// scroll to image
this.elem.querySelector('.scroll-area').style.top = `${-this.screenIndex * actualFrameHeight}px`;