fix full screen vertical and radar
This commit is contained in:
parent
2c31484e99
commit
2c9e15bed0
5 changed files with 5 additions and 5 deletions
|
|
@ -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`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue