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

New commits:
commit 4e2bf06674dcca178624c48e6d7cd9cbb0d1f133
Author: Andrzej Hunt <andrzej.h...@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) {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to