commit
13d06fccf6
1
dist/leaflet.css
vendored
1
dist/leaflet.css
vendored
@ -14,6 +14,7 @@
|
|||||||
.leaflet-image-layer,
|
.leaflet-image-layer,
|
||||||
.leaflet-layer { /* TODO optimize classes */
|
.leaflet-layer { /* TODO optimize classes */
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
}
|
}
|
||||||
.leaflet-container {
|
.leaflet-container {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
@ -53,7 +53,14 @@ L.DomUtil = {
|
|||||||
if (el === docBody) { break; }
|
if (el === docBody) { break; }
|
||||||
|
|
||||||
top -= el.scrollTop || 0;
|
top -= el.scrollTop || 0;
|
||||||
|
|
||||||
|
//See https://developer.mozilla.org/en-US/docs/DOM/element.scrollLeft
|
||||||
|
// http://www.nczonline.net/blog/2010/08/03/working-with-bidirectional-bidi-text-and-rtl-languages-on-the-web/
|
||||||
|
if (L.DomUtil.getStyle(el, 'direction') == "ltr") {
|
||||||
left -= el.scrollLeft || 0;
|
left -= el.scrollLeft || 0;
|
||||||
|
} else {
|
||||||
|
left -= (el.scrollLeft || 0) - el.scrollWidth + el.clientWidth;
|
||||||
|
}
|
||||||
|
|
||||||
el = el.parentNode;
|
el = el.parentNode;
|
||||||
} while (el);
|
} while (el);
|
||||||
|
Loading…
Reference in New Issue
Block a user