loleaflet/src/control/Permission.js |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 11b7270acd930dd0ab61c96b1ab7d04a7d3e1d8b
Author:     Pranam Lashkari <lpra...@collabora.com>
AuthorDate: Sat Feb 22 05:15:29 2020 +0530
Commit:     Michael Meeks <michael.me...@collabora.com>
CommitDate: Mon Feb 24 12:22:37 2020 +0100

    Zoom to cursor when entering edit mode in Writer
    
    Change-Id: Ic814117ae47b63d16475edc9c3f26aea9626980e
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89242
    Tested-by: Michael Meeks <michael.me...@collabora.com>
    Reviewed-by: Michael Meeks <michael.me...@collabora.com>

diff --git a/loleaflet/src/control/Permission.js 
b/loleaflet/src/control/Permission.js
index 91b8fe195..283bfea69 100644
--- a/loleaflet/src/control/Permission.js
+++ b/loleaflet/src/control/Permission.js
@@ -50,6 +50,11 @@ L.Map.include({
                }
 
                this.fire('updatepermission', {perm : perm});
+
+               if (this._docLayer._docType === 'text') {
+                       this.setZoom(10);
+               }
+
        },
 
        _enterReadOnlyMode: function (perm) {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to