Fix elevation chart width, map not full width with sidebar open anymore

This commit is contained in:
Norbert Renner 2018-03-03 13:27:51 +01:00
parent 3acd1171b1
commit 92aafc61d1

View file

@ -36,7 +36,7 @@ BR.Elevation = L.Control.Elevation.extend({
addBelow: function(map) {
// waiting for https://github.com/MrMufflon/Leaflet.Elevation/pull/66
// this.width($('#map').outerWidth());
this.options.width = $('#map').outerWidth();
this.options.width = $('#content').outerWidth();
if (this.getContainer() != null) {
this.remove(map);