loleaflet/src/layer/tile/CanvasTileLayer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit c0e59fb50e3be59fac9753ebda6f905728688f8b Author: Dennis Francis <dennis.fran...@collabora.com> AuthorDate: Fri Aug 7 17:25:06 2020 +0530 Commit: Dennis Francis <dennis.fran...@collabora.com> CommitDate: Wed Aug 12 10:22:13 2020 +0200 loleaflet: canvas should resize/repaint on map-resize Fixes canvas update issues when browser window is resized (esp. when making it larger) and also during sidebar switching. Change-Id: I4870e5294b355c1bd0c4ca74b22383207ed9d060 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100483 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Tested-by: Jenkins Reviewed-by: Dennis Francis <dennis.fran...@collabora.com> diff --git a/loleaflet/src/layer/tile/CanvasTileLayer.js b/loleaflet/src/layer/tile/CanvasTileLayer.js index 3da9ea82e..57ebab698 100644 --- a/loleaflet/src/layer/tile/CanvasTileLayer.js +++ b/loleaflet/src/layer/tile/CanvasTileLayer.js @@ -443,7 +443,7 @@ L.CanvasTileLayer = L.TileLayer.extend({ this._map.on('movestart', this._painter.startUpdates, this._painter); this._map.on('moveend', this._painter.stopUpdates, this._painter); } - this._map.on('zoomend', this._painter.update, this._painter); + this._map.on('resize zoomend', this._painter.update, this._painter); this._map.on('splitposchanged', this._painter.update, this._painter); this._map.on('move', this._syncTilePanePos, this); }, _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits