[Libreoffice-commits] online.git: Branch 'distro/collabora/co-4-2' - loleaflet/src
Pranam Lashkari (via logerrit)
logerrit at kemper.freedesktop.org
Wed Jul 29 09:27:25 UTC 2020
loleaflet/src/control/Control.PartsPreview.js | 7 -------
1 file changed, 7 deletions(-)
New commits:
commit dd48c6eac20a5ce1a40ac15aae5d22daa17945c6
Author: Pranam Lashkari <lpranam at collabora.com>
AuthorDate: Tue Jul 28 17:23:11 2020 +0530
Commit: Andras Timar <andras.timar at collabora.com>
CommitDate: Wed Jul 29 11:27:07 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/+/99625
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Andras Timar <andras.timar at collabora.com>
diff --git a/loleaflet/src/control/Control.PartsPreview.js b/loleaflet/src/control/Control.PartsPreview.js
index 2a0efecdd..860ad6bb7 100644
--- a/loleaflet/src/control/Control.PartsPreview.js
+++ b/loleaflet/src/control/Control.PartsPreview.js
@@ -539,13 +539,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');
More information about the Libreoffice-commits
mailing list