[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-2-1' - loleaflet/src

Pranav Kant pranavk at collabora.co.uk
Wed Apr 26 16:06:06 UTC 2017


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

New commits:
commit 508d4a52d2f0d047179ba396b590096d19e3c212
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
    (cherry picked from commit 8acc05fa85692fe8303f77faa0aeae7f0b58d29e)
    Reviewed-on: https://gerrit.libreoffice.org/36987
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>
    Tested-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js
index 45f01484..0d2bb93a 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