Skip to content

Commit

Permalink
Uncommented the correct styling for volume bar
Browse files Browse the repository at this point in the history
See issue #1 for reference
  • Loading branch information
ferferga authored May 31, 2019
1 parent f54ea04 commit 72dfd8f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions MMM-GoogleCast.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,7 @@ Module.register("MMM-GoogleCast",{
}
else
{
volumeBar.style = "background-color: white; border: 4px solid white; vertical-align: bottom; border-radius: 5px; overflow: hidden; height: " + (this.volume * 100) + "px";
// volumeBar.style = "background-color: white; border: 4px solid white; vertical-align: bottom; border-radius: 5px; height: " + (this.volume * 100) + "%";
volumeBar.style = "background-color: white; border: 4px solid white; vertical-align: bottom; border-radius: 5px; height: " + (this.volume * 100) + "%";
}
volumeDiv.appendChild(volumeBar);
deviceStatus.appendChild(volumeDiv);
Expand Down Expand Up @@ -287,4 +286,4 @@ Module.register("MMM-GoogleCast",{
this.sendSocketNotification('CONFIG', this.config);
Log.info('Starting module: ' + this.name);
}
});
});

0 comments on commit 72dfd8f

Please sign in to comment.