nakarte

Source code of https://map.sikmir.ru (fork)
git clone git://git.sikmir.ru/nakarte
Log | Files | Refs | LICENSE

commit dbd62f4f6262b4484d792e0e35ea4c05008b9e07
parent 58a7f91830bb7aad19e6e8d05c0db937967b42c6
Author: Sergej Orlov <wladimirych@gmail.com>
Date:   Fri,  2 Dec 2016 19:44:05 +0300

[layers control] bigger margin for dynamic height

Diffstat:
Msrc/lib/leaflet.control.layers.adaptive-height/adaptive-height.js | 3+--
1 file changed, 1 insertion(+), 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 - - 30); // margin + - 50); // margin this._form.style.maxHeight = maxHeight + 'px'; } } @@ -36,7 +36,6 @@ function enableAdaptiveHeight(control) { if (control._map) { control.__setupResizeEventsHandler(); setTimeout(() => control.__setAdaptiveHeight(), 0); - } return control;