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

Pranav Kant pranavk at collabora.co.uk
Wed Apr 26 12:26:32 UTC 2017


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

New commits:
commit 8acc05fa85692fe8303f77faa0aeae7f0b58d29e
Author: Pranav Kant <pranavk at collabora.co.uk>
Date:   Wed Apr 26 17:54:47 2017 +0530

    loleaflet: Disable retina display on calc
    
    Change-Id: I2a16844db7873b4c26e1f28d17dc33a5526efb78

diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js
index 6f7159e1..ee9408f8 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -63,7 +63,7 @@ L.TileLayer = L.GridLayer.extend({
 		this._tileHeightPx = options.tileSize;
 
 		// detecting retina displays, adjusting tileWidthPx, tileHeightPx and zoom levels
-		if (options.detectRetina && L.Browser.retina && options.maxZoom > 0) {
+		if (options.docType !== 'spreadsheet' && options.detectRetina && L.Browser.retina && options.maxZoom > 0) {
 			this._tileWidthPx *= 2;
 			this._tileHeightPx *= 2;
 			options.zoomOffset++;


More information about the Libreoffice-commits mailing list