We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdbf11d commit d472df2Copy full SHA for d472df2
server/scripts/modules/hazards.mjs
@@ -122,7 +122,7 @@ class Hazards extends WeatherDisplay {
122
// base count change callback
123
baseCountChange(count) {
124
// calculate scroll offset and don't go past end
125
- let offsetY = Math.min(this.elem.querySelector('.hazard-lines').getBoundingClientRect().height - 390, (count - 150));
+ let offsetY = Math.min(this.elem.querySelector('.hazard-lines').offsetHeight - 390, (count - 150));
126
127
// don't let offset go negative
128
if (offsetY < 0) offsetY = 0;
0 commit comments