Fix elevation chart width, map not full width with sidebar open anymore
This commit is contained in:
parent
3acd1171b1
commit
92aafc61d1
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue