[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-3' - loleaflet/src

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Oct 3 09:25:13 UTC 2018


 loleaflet/src/map/Map.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit acf5ebd540d322077030ed240e7dbba3e14411ea
Author:     Henry Castro <hcastro at collabora.com>
AuthorDate: Tue Oct 2 23:47:32 2018 -0400
Commit:     Jan Holesovsky <kendy at collabora.com>
CommitDate: Wed Oct 3 11:24:55 2018 +0200

    loleaflet: mobile: ensure to not create the ruler
    
    Change-Id: I7f985f93d8282533aa6cb32bff455b08011d7dfc
    Reviewed-on: https://gerrit.libreoffice.org/61281
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>
    Tested-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index 769b2969d..7a078ebd2 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -122,7 +122,7 @@ L.Map = L.Evented.extend({
 			if (!this.initComplete) {
 				this._fireInitComplete('doclayerinit');
 			}
-			if (this._docLayer._docType == 'text') {
+			if (!L.Browser.mobile && this._docLayer._docType == 'text') {
 				var interactiveRuler = this._permission === 'edit' ? true : false;
 				L.control.ruler({position:'topleft', interactive:interactiveRuler}).addTo(this);
 			}


More information about the Libreoffice-commits mailing list