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

Andrzej Hunt andrzej.hunt at collabora.com
Mon Nov 16 05:43:50 PST 2015


 loleaflet/src/layer/tile/CalcTileLayer.js |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

New commits:
commit 4e2bf06674dcca178624c48e6d7cd9cbb0d1f133
Author: Andrzej Hunt <andrzej.hunt at collabora.com>
Date:   Mon Nov 16 14:43:06 2015 +0100

    loleaflet: update client zoom before ViewRowColumnHeaders

diff --git a/loleaflet/src/layer/tile/CalcTileLayer.js b/loleaflet/src/layer/tile/CalcTileLayer.js
index 227050a..bf3ba5d 100644
--- a/loleaflet/src/layer/tile/CalcTileLayer.js
+++ b/loleaflet/src/layer/tile/CalcTileLayer.js
@@ -125,6 +125,11 @@ L.CalcTileLayer = L.TileLayer.extend({
 
 	_onZoomRowColumns: function () {
 		this._isZoomend = true;
+		this._updateClientZoom();
+		if (this._clientZoom) {
+			L.Socket.sendMessage('clientzoom ' + this._clientZoom);
+			this._clientZoom = null;
+		}
 		L.Socket.sendMessage('commandvalues command=.uno:ViewRowColumnHeaders');
 	},
 
@@ -169,7 +174,8 @@ L.CalcTileLayer = L.TileLayer.extend({
 			}
 		}
 
-		L.Socket.sendMessage('commandvalues command=.uno:ViewRowColumnHeaders');
+		// Force fetching of row/column headers
+		this._onZoomRowColumns();
 	},
 
 	_onCommandValuesMsg: function (textMsg) {


More information about the Libreoffice-commits mailing list