loleaflet/src/layer/tile/TileLayer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit cfcf27ff1e9d871b1ab0a7f67d5c96529c53ba37 Author: Henry Castro <hcas...@collabora.com> AuthorDate: Thu Aug 16 16:17:37 2018 -0400 Commit: Henry Castro <hcas...@collabora.com> CommitDate: Fri Aug 17 14:36:52 2018 -0400 loleaflet: auto fit width limit 100% Change-Id: I6dfa345e9faa85a794d2a7f276f134f57511fe63 diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js index 15292feda..de1269e54 100644 --- a/loleaflet/src/layer/tile/TileLayer.js +++ b/loleaflet/src/layer/tile/TileLayer.js @@ -2153,7 +2153,7 @@ L.TileLayer = L.GridLayer.extend({ var widthTwips = newSize.x * this._map.options.tileWidthTwips / this._tileSize; var ratio = widthTwips / this._docWidthTwips; - maxZoom = maxZoom ? maxZoom : this.options.maxZoom; + maxZoom = maxZoom ? maxZoom : this._map.options.zoom; // 'fit width zoom' has no use in spreadsheets, ignore it there if (this._docType !== 'spreadsheet') { var crsScale = this._map.options.crs.scale(1); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits