[Libreoffice-commits] online.git: loleaflet/src
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Oct 9 19:56:15 UTC 2018
loleaflet/src/map/Map.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 1cc4acd95c8eae3e59de8fbc0ccb2958831679e2
Author: Henry Castro <hcastro at collabora.com>
AuthorDate: Tue Oct 2 23:47:32 2018 -0400
Commit: Henry Castro <hcastro at collabora.com>
CommitDate: Tue Oct 9 15:55:37 2018 -0400
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 07ba04098..7d0937f97 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -123,7 +123,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