From 23c51acd492bc754d3897e2064efc9fdf0f4ed96 Mon Sep 17 00:00:00 2001 From: Pranam Lashkari Date: Tue, 28 Jul 2020 17:11:45 +0530 Subject: [PATCH] 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 Tested-by: Jenkins Reviewed-by: Andras Timar --- loleaflet/src/control/Control.PartsPreview.js | 7 ------- 1 file changed, 7 deletions(-) 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');