loleaflet/src/control/Control.PartsPreview.js |    7 -------
 1 file changed, 7 deletions(-)

New commits:
commit 23c51acd492bc754d3897e2064efc9fdf0f4ed96
Author:     Pranam Lashkari <lpra...@collabora.com>
AuthorDate: Tue Jul 28 17:11:45 2020 +0530
Commit:     Andras Timar <andras.ti...@collabora.com>
CommitDate: Wed Jul 29 11:27:19 2020 +0200

    leaflet: resolved error in the drop of slide preview
    
    error: Control.PartsPreview.js:633 Uncaught TypeError:
    Cannot read property 'maxWidth' of undefined
    
    Change-Id: I618238339187d24312fce4f8eb74f8d331f0d8b4
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99613
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Tested-by: Jenkins
    Reviewed-by: Andras Timar <andras.ti...@collabora.com>

diff --git a/loleaflet/src/control/Control.PartsPreview.js 
b/loleaflet/src/control/Control.PartsPreview.js
index b50fd8c66..77847fd55 100644
--- a/loleaflet/src/control/Control.PartsPreview.js
+++ b/loleaflet/src/control/Control.PartsPreview.js
@@ -586,13 +586,6 @@ L.Control.PartsPreview = L.Control.extend({
                        if (partId < 0)
                                partId = -1; // First item is -1.
                        
this.partsPreview._map._socket.sendMessage('moveselectedclientparts position=' 
+ partId);
-                       // Update previews, after a second, since we only get 
the dragged one invalidated.
-                       var that = this.partsPreview;
-                       setTimeout(function () {
-                               for (var i = 0; i < that._previewTiles.length; 
++i) {
-                                       that._map.getPreview(i, 
this.options.maxWidth, this.options.maxHeight, {autoUpdate: 
that.options.autoUpdate, broadcast: true});
-                               }
-                       }, 1000);
                }
 
                this.classList.remove('preview-img-dropsite');
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to