Skip to content

Commit

Permalink
Fix a bug for rainMinHeight change
Browse files Browse the repository at this point in the history
  • Loading branch information
mtatsuma committed Dec 16, 2020
1 parent d2309de commit 0891804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MMM-WeatherChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ Module.register("MMM-WeatherChart", {
// Set Y-Axis range not to overlap each other
let y1_max = iconLine[0] + (maxValue - minValue) * 0.1,
y1_min = minValue - (maxValue - minValue) * 0.2,
y2_max = Math.max(maxRain, this.config.maxRain) * 3.2,
y2_max = Math.max(maxRain, this.config.rainMinHeight) * 3.2,
y2_min = 0;
if (this.config.showRain) {
y1_min = y1_min - (maxValue - minValue);
Expand Down

0 comments on commit 0891804

Please sign in to comment.