mirror of
https://github.com/Leaflet/Leaflet.git
synced 2025-08-16 16:45:22 +00:00
Support sticky map container positioning (#8550)
This commit is contained in:
@ -1112,7 +1112,7 @@ export var Map = Evented.extend({
|
||||
|
||||
var position = DomUtil.getStyle(container, 'position');
|
||||
|
||||
if (position !== 'absolute' && position !== 'relative' && position !== 'fixed') {
|
||||
if (position !== 'absolute' && position !== 'relative' && position !== 'fixed' && position !== 'sticky') {
|
||||
container.style.position = 'relative';
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user