From 4bf9a457844e360187dc2b37bf164a3b3a58e73a Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Sun, 30 Aug 2020 20:40:28 +0000 Subject: [PATCH] Fix right panel on Safari browser (overflow: auto + position: fixed) --- map.js | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/map.js b/map.js index 6f628c9..85542e9 100644 --- a/map.js +++ b/map.js @@ -87,17 +87,22 @@ this._hide.className = 'hide'; this._hide.addEventListener('click', this.toggleExpanded.bind(this)); - this._close = addElementWithText(this._element, 'a', '×'); + this._container = document.createElement('div'); + this._container.className = 'panel-container'; + + this._close = addElementWithText(this._container, 'a', '×'); this._close.title = lang.action_close; this._close.className = 'close'; this._close.addEventListener('click', this.close.bind(this)); this._content = document.createElement('div'); - this._element.appendChild(this._content); + this._container.appendChild(this._content); + this._element.appendChild(this._container); } Panel.prototype = { _element: null, _hide: null, + _container: null, _close: null, _content: null, -- Gitblit v1.9.1