Fixed Safari redraw after popup issue, closed #296

This commit is contained in:
mourner 2011-12-15 13:56:29 +02:00
parent e50c98863c
commit 80048bddf4
4 changed files with 6 additions and 1 deletions

View File

@ -82,6 +82,7 @@ Leaflet Changelog
* Fixed occasional crashes on Mac Safari (thanks to [@lapinos03](https://github.com/lapinos03)). [#191](https://github.com/CloudMade/Leaflet/issues/191)
* Fixed a bug that raised error in IE6-8 when clicking on popup close button. [#235](https://github.com/CloudMade/Leaflet/issues/235)
* Fixed a bug with Safari not redrawing UI immediately after closing a popup. [#296](https://github.com/CloudMade/Leaflet/issues/296)
* Fixed a bug that caused performance drop and high CPU usage when calling `setView` or `panTo` to the current center. [#231](https://github.com/CloudMade/Leaflet/issues/231)
* Fixed a bug that caused map overlays to appear blurry in some cases under WebKit browsers.
* Fixed a bug that was causing errors in some Webkit/Linux builds (requestAnimationFrame-related), thanks to Chris Martens.

2
dist/leaflet-src.js vendored
View File

@ -2261,6 +2261,8 @@ L.Popup = L.Class.extend({
onRemove: function (map) {
map._panes.popupPane.removeChild(this._container);
L.Util.falseFn(this._container.offsetWidth);
map.off('viewreset', this._updatePosition, this);
map.off('click', this._close, this);

2
dist/leaflet.js vendored

File diff suppressed because one or more lines are too long

View File

@ -42,6 +42,8 @@ L.Popup = L.Class.extend({
onRemove: function (map) {
map._panes.popupPane.removeChild(this._container);
L.Util.falseFn(this._container.offsetWidth);
map.off('viewreset', this._updatePosition, this);
map.off('click', this._close, this);