summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2020-04-08 14:15:22 +0200
committerJan Holesovsky <kendy@collabora.com>2020-04-08 17:41:48 +0200
commit53dd77bfa137cf934dc6ad8f7386e81730fef5c2 (patch)
tree4e425c47efbee3cf90e5a217b2c64dd31b025ce3
parentmobile: Never use L.Browser.mobile, instead use window.mode.isXYZ(). (diff)
downloadonline-53dd77bfa137cf934dc6ad8f7386e81730fef5c2.tar.gz
online-53dd77bfa137cf934dc6ad8f7386e81730fef5c2.zip
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@gmail.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
-rw-r--r--loleaflet/js/global.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/loleaflet/js/global.js b/loleaflet/js/global.js
index a4fd77babf..3022d94a3b 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() {