mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-17 09:09:30 -07:00
fix full screen vertical and radar
This commit is contained in:
@@ -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`;
|
||||
|
||||
Reference in New Issue
Block a user