diff --git a/debug/tests/popup_offset.html b/debug/tests/popup_offset.html deleted file mode 100644 index ca88e1f9..00000000 --- a/debug/tests/popup_offset.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - Leaflet debug page - - - - - - - - - - - - -
- - - - diff --git a/src/layer/Layer.Popup.js b/src/layer/Layer.Popup.js index 54cfd337..7854d605 100644 --- a/src/layer/Layer.Popup.js +++ b/src/layer/Layer.Popup.js @@ -127,8 +127,7 @@ L.Layer.include({ _popupAnchor: function (layer) { var anchor = layer._getPopupAnchor ? layer._getPopupAnchor() : [0, 0]; - var offsetToAdd = layer._popup ? layer._popup.options.offset : L.Popup.prototype.options.offset; - return L.point(anchor).add(offsetToAdd); + return L.point(anchor).add(L.Popup.prototype.options.offset); }, _movePopup: function (e) {