IITC-CE / ingress-intel-total-conversion

intel.ingress.com total conversion user script with some new features. Should allow easier extension of the intel map.
https://iitc.app
ISC License
284 stars 110 forks source link

margin-bottom issue with .leaflet-bottom #151

Closed johnd0e closed 3 years ago

johnd0e commented 5 years ago

See #map > div.leaflet-control-container > div.leaflet-bottom.leaflet-left (and the same is with .leaflet-right)

If current baselayer is any of GoogleMutant - .leaflet-bottom element has inline style:

<div class="leaflet-bottom leaflet-left" style="margin-bottom: 20px;">

In other layers you see the same but with margin-bottom: 0em.

Because of this fact during layer switching you can see that position of bottom leaflet controls changes (e.g. see minimap).

johnd0e commented 5 years ago

@modos189 ?

johnd0e commented 5 years ago

The source of the issue:

onAdd: https://github.com/IITC-CE/ingress-intel-total-conversion/blob/256f9c53a866a254b40e40b1f766e58b4d2a89f4/external/Leaflet.GoogleMutant.js#L79-L81

onRemove: https://github.com/IITC-CE/ingress-intel-total-conversion/blob/256f9c53a866a254b40e40b1f766e58b4d2a89f4/external/Leaflet.GoogleMutant.js#L109-L110

Report: https://gitlab.com/IvanSanchez/Leaflet.GridLayer.GoogleMutant/issues/93