loleaflet/src/map/Map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit acf5ebd540d322077030ed240e7dbba3e14411ea Author: Henry Castro <hcas...@collabora.com> AuthorDate: Tue Oct 2 23:47:32 2018 -0400 Commit: Jan Holesovsky <ke...@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 <ke...@collabora.com> Tested-by: Jan Holesovsky <ke...@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); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits