mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-18 17:49:31 -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`;
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -283,7 +283,7 @@ body {
|
||||
position: relative;
|
||||
width: 640px;
|
||||
height: 480px;
|
||||
overflow: hidden;
|
||||
// overflow: hidden;
|
||||
background-image: url(../images/BackGround1_1.png);
|
||||
transform-origin: 0 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user