[Libreoffice-commits] online.git: loleaflet/src

Pranam Lashkari (via logerrit) logerrit at kemper.freedesktop.org
Mon Feb 24 11:22:55 UTC 2020


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

New commits:
commit 11b7270acd930dd0ab61c96b1ab7d04a7d3e1d8b
Author:     Pranam Lashkari <lpranam at collabora.com>
AuthorDate: Sat Feb 22 05:15:29 2020 +0530
Commit:     Michael Meeks <michael.meeks at 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.meeks at collabora.com>
    Reviewed-by: Michael Meeks <michael.meeks at 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) {


More information about the Libreoffice-commits mailing list