[Libreoffice-commits] online.git: loleaflet/src

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Aug 17 18:38:49 UTC 2018


 loleaflet/src/layer/tile/TileLayer.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit cfcf27ff1e9d871b1ab0a7f67d5c96529c53ba37
Author:     Henry Castro <hcastro at collabora.com>
AuthorDate: Thu Aug 16 16:17:37 2018 -0400
Commit:     Henry Castro <hcastro at 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);


More information about the Libreoffice-commits mailing list