[Libreoffice-commits] online.git: Branch 'distro/collabora/co-4-2-2' - loleaflet/js
Jan Holesovsky (via logerrit)
logerrit at kemper.freedesktop.org
Wed Apr 8 15:42:06 UTC 2020
loleaflet/js/global.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 53dd77bfa137cf934dc6ad8f7386e81730fef5c2
Author: Jan Holesovsky <kendy at collabora.com>
AuthorDate: Wed Apr 8 14:15:22 2020 +0200
Commit: Jan Holesovsky <kendy at collabora.com>
CommitDate: Wed Apr 8 17:41:48 2020 +0200
mobile, tablet: Even the small tablets or large phones should get the phone UI.
There is clearly not enough space for the normal sidebar when one of the
dimensions is below 768.
Change-Id: Iac27f12f837b9e6a64d1cce7b8376009bbe2c15f
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91914
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
diff --git a/loleaflet/js/global.js b/loleaflet/js/global.js
index a4fd77bab..3022d94a3 100644
--- a/loleaflet/js/global.js
+++ b/loleaflet/js/global.js
@@ -149,7 +149,7 @@
return true;
}
- return L.Browser.mobile && screen.width < 768;
+ return L.Browser.mobile && (screen.width < 768 || screen.height < 768);
},
// Mobile device with big screen size.
isTablet: function() {
More information about the Libreoffice-commits
mailing list