Support sticky map container positioning (#8550)

This commit is contained in:
tmiaa
2022-10-09 19:13:02 +02:00
committed by GitHub
parent bf20569dce
commit 2fa27755ee

View File

@ -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';
}