commit 572b840e2772ced155f5c8bb16fe8b265bb9c9df
parent d2135cb94b339935c5199198c383c2a5af1ed1a3
Author: Sergej Orlov <wladimirych@gmail.com>
Date: Thu, 8 Dec 2016 00:39:16 +0300
adjusted margin for dynamic height of layers and tracks controls
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lib/leaflet.control.layers.adaptive-height/adaptive-height.js b/src/lib/leaflet.control.layers.adaptive-height/adaptive-height.js
@@ -27,7 +27,7 @@ function enableAdaptiveHeight(control) {
maxHeight = (mapHeight
- this._container.offsetTop // controls above
- (this._container.parentNode.offsetHeight - this._container.offsetTop - this._container.offsetHeight) //controls below
- - 50); // margin
+ - 70); // margin
this._form.style.maxHeight = maxHeight + 'px';
}
}
diff --git a/src/lib/leaflet.control.track-list/track-list.js b/src/lib/leaflet.control.track-list/track-list.js
@@ -138,7 +138,7 @@ L.Control.TrackList = L.Control.extend({
maxHeight = (mapHeight
- this._container.offsetTop // controls above
- (this._container.parentNode.offsetHeight - this._container.offsetTop - this._container.offsetHeight) //controls below
- - 100); // margin
+ - 105); // margin
this.trackListHeight(maxHeight + 'px');
},