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

New commits:
commit 9885fc136e022f55b2e139cfe81efc352e9932f1
Author:     Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk>
AuthorDate: Mon Apr 20 10:45:06 2020 +0200
Commit:     Tomaž Vajngerl <qui...@gmail.com>
CommitDate: Mon Apr 20 12:46:43 2020 +0200

    ruler: show ruler for all tablets, not only iOS
    
    Change-Id: If127220052bf956c88e4b927a882a1d049e91dac
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92551
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Tomaž Vajngerl <qui...@gmail.com>

diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index 860117cc5..d457f4076 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -200,7 +200,7 @@ L.Map = L.Evented.extend({
                        if (!this.initComplete) {
                                this._fireInitComplete('doclayerinit');
                        }
-                       if (((window.ThisIsTheiOSApp && window.mode.isTablet()) 
|| window.mode.isDesktop()) && this._docLayer._docType == 'text') {
+                       if ((window.mode.isTablet() || window.mode.isDesktop()) 
&& 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

Reply via email to