diff --git a/src/CategoryOverpass.js b/src/CategoryOverpass.js index 8b99f268..af7f4bea 100644 --- a/src/CategoryOverpass.js +++ b/src/CategoryOverpass.js @@ -532,6 +532,7 @@ CategoryOverpass.prototype.notifyPopupOpen = function (object, popup) { }, () => {}) // Move close button into the content, to make its position depending whether a scrollbar is visible or not + popup._closeButton.setAttribute('data-order', -1001) popup._contentNode.insertBefore(popup._closeButton, popup._contentNode.firstChild) }