[Libreoffice-commits] online.git: loleaflet/src

Henry Castro (via logerrit) logerrit at kemper.freedesktop.org
Wed Feb 19 02:30:44 UTC 2020


 loleaflet/src/control/Control.PartsPreview.js |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit f14fca607c2c04bf813918e17b48f338c1ea980c
Author:     Henry Castro <hcastro at collabora.com>
AuthorDate: Tue Feb 18 20:26:25 2020 -0400
Commit:     Henry Castro <hcastro at collabora.com>
CommitDate: Wed Feb 19 03:30:24 2020 +0100

    loleaflet: mobile: set default preview images
    
    using window.mode.isMobile() is used
    small screen devices, and window.mode.isTablet()
    larger screen devices.
    
    Define a default preview image for all devices
    
    Change-Id: I623c9851d53503108e6eba2c5b8df18aeca33d24
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88992
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Henry Castro <hcastro at collabora.com>

diff --git a/loleaflet/src/control/Control.PartsPreview.js b/loleaflet/src/control/Control.PartsPreview.js
index 95710df06..3ed9f09d4 100644
--- a/loleaflet/src/control/Control.PartsPreview.js
+++ b/loleaflet/src/control/Control.PartsPreview.js
@@ -8,8 +8,8 @@ L.Control.PartsPreview = L.Control.extend({
 	options: {
 		fetchThumbnail: true,
 		autoUpdate: true,
-		maxWidth: window.mode.isMobile() ? 60 : 180,
-		maxHeight: window.mode.isMobile() ? 60 : 180
+		maxWidth: L.Browser.mobile ? 60 : 180,
+		maxHeight: L.Browser.mobile ? 60 : 180
 	},
 	partsFocused: false,
 


More information about the Libreoffice-commits mailing list