Skip to content

Commit

Permalink
Fix 2022.11 breaking change. Bump leaflet.
Browse files Browse the repository at this point in the history
  • Loading branch information
Makin-Things committed Nov 4, 2022
1 parent 948f3b8 commit 8239140
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dist/leaflet.css
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ svg.leaflet-image-layer.leaflet-interactive path {
}

/* Printing */

@media print {
/* Prevent printers from removing background-images of controls. */
.leaflet-control {
Expand Down
4 changes: 2 additions & 2 deletions dist/leaflet.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/weather-radar-card.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "Weather Radar Card",
"render_readme": true,
"filename": "weather-radar-card.js"
"filename": "weather-radar-card.js",
"homeassistant": "2022.11.0"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "weather-radar-card",
"version": "2.1.0",
"version": "2.1.1",
"description": "A rain radar card using data from RainViewer",
"keywords": [
"home-assistant",
Expand Down
2 changes: 1 addition & 1 deletion src/const.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const CARD_VERSION = '2.1.0';
export const CARD_VERSION = '2.1.1';
6 changes: 3 additions & 3 deletions src/weather-radar-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export class WeatherRadarCard extends LitElement implements LovelaceCard {
</div>
<div id="mapid" style="height: ${this.isPanel
? this.offsetParent
? this.offsetParent.clientHeight - 48 - (this.editMode === true ? 59 : 0) + `px`
? this.offsetParent.clientHeight - 48 - 2 - (this.editMode === true ? 59 : 0) + `px`
: `540px`
: this._config.square_map !== undefined
? this._config.square_map
Expand Down Expand Up @@ -591,7 +591,7 @@ export class WeatherRadarCard extends LitElement implements LovelaceCard {
this.document.getElementById("mapid").width = this.frameElement.offsetWidth;
this.document.getElementById("mapid").height = ${this.isPanel
? this.offsetParent
? this.offsetParent.clientHeight - 48 - (this.editMode === true ? 59 : 0)
? this.offsetParent.clientHeight - 48 - 2 - (this.editMode === true ? 59 : 0)
: 492
: this._config.square_map !== undefined
? this._config.square_map
Expand All @@ -611,7 +611,7 @@ export class WeatherRadarCard extends LitElement implements LovelaceCard {

const padding = this.isPanel
? this.offsetParent
? this.offsetParent.clientHeight - (this.editMode === true ? 59 : 0) + `px`
? this.offsetParent.clientHeight - 2 - (this.editMode === true ? 59 : 0) + `px`
: `540px`
: this._config.square_map !== undefined
? this._config.square_map
Expand Down

0 comments on commit 8239140

Please sign in to comment.