loleaflet/src/layer/AnnotationManager.js |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 49f18eb9a4a512c3fce1b69b735e04a045f21c1e
Author: Pranav Kant <pran...@collabora.co.uk>
Date:   Tue May 2 14:16:50 2017 +0530

    lolefalet: Animate all annotation elements, not just selected
    
    Change-Id: I5b597b057e5f26e79b4db7aa3b4b5733c34914cf
    (cherry picked from commit 35a604bee1e8ae288e060085782b55a2323947fd)
    Reviewed-on: https://gerrit.libreoffice.org/37157
    Reviewed-by: Jan Holesovsky <ke...@collabora.com>
    Tested-by: Jan Holesovsky <ke...@collabora.com>

diff --git a/loleaflet/src/layer/AnnotationManager.js 
b/loleaflet/src/layer/AnnotationManager.js
index 66c2ec8a..7fee34a6 100644
--- a/loleaflet/src/layer/AnnotationManager.js
+++ b/loleaflet/src/layer/AnnotationManager.js
@@ -248,6 +248,7 @@ L.AnnotationManager = L.Class.extend({
                if (commentThread.length <= 0)
                        return;
 
+               (new L.PosAnimation()).run(commentThread[0]._container, 
this._map.latLngToLayerPoint(latLng));
                commentThread[0].setLatLng(latLng);
                var bounds = commentThread[0].getBounds();
                var idx = 1;
@@ -269,6 +270,7 @@ L.AnnotationManager = L.Class.extend({
                idx = 0;
                for (idx = 0; idx < commentThread.length; ++idx) {
                        latLng = this._map.layerPointToLatLng(pt);
+                       (new 
L.PosAnimation()).run(commentThread[idx]._container, 
this._map.latLngToLayerPoint(latLng));
                        commentThread[idx].setLatLng(latLng);
                        commentThread[idx].show();
 
@@ -281,6 +283,7 @@ L.AnnotationManager = L.Class.extend({
                if (commentThread.length <= 0)
                        return;
 
+               (new L.PosAnimation()).run(commentThread[0]._container, 
this._map.latLngToLayerPoint(latLng));
                commentThread[0].setLatLng(latLng);
                var bounds = commentThread[0].getBounds();
                var idx = 1;
@@ -302,6 +305,7 @@ L.AnnotationManager = L.Class.extend({
                idx = 0;
                for (idx = 0; idx < commentThread.length; ++idx) {
                        latLng = this._map.layerPointToLatLng(pt);
+                       (new 
L.PosAnimation()).run(commentThread[idx]._container, 
this._map.latLngToLayerPoint(latLng));
                        commentThread[idx].setLatLng(latLng);
                        commentThread[idx].show();
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to