[Libreoffice-commits] online.git: loleaflet/src
gokaysatir (via logerrit)
logerrit at kemper.freedesktop.org
Wed Sep 9 12:20:40 UTC 2020
loleaflet/src/control/Control.PartsPreview.js | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit aca07fec869117589a7b81b64328f39e02fc882d
Author: gokaysatir <gokaysatir at collabora.com>
AuthorDate: Sat Aug 29 15:25:19 2020 +0300
Commit: Andras Timar <andras.timar at collabora.com>
CommitDate: Wed Sep 9 14:20:21 2020 +0200
loleaflet: Hide portrait view previews on layout view.
When user switches to layout view on mobile. Viewing a page's properties opens 2 preview sliders. Portrait view's slider is hidden with this patch.
Change-Id: Iebbdd9c6c94f19a39df271106b75f2e9f55a7b35
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/101641
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Andras Timar <andras.timar at collabora.com>
diff --git a/loleaflet/src/control/Control.PartsPreview.js b/loleaflet/src/control/Control.PartsPreview.js
index 58408b48f..8694b8bf6 100644
--- a/loleaflet/src/control/Control.PartsPreview.js
+++ b/loleaflet/src/control/Control.PartsPreview.js
@@ -184,6 +184,14 @@ L.Control.PartsPreview = L.Control.extend({
$(this._partsPreviewCont).mCustomScrollbar('destroy');
this.createScrollbar();
}
+
+ // Hide portrait view's previews when layout view is used.
+ if (this._direction === 'x' && window.mode.isMobile()) {
+ document.getElementById('mobile-slide-sorter').style.display = 'block';
+ }
+ else if (this._direction === 'y' && window.mode.isMobile()) {
+ document.getElementById('mobile-slide-sorter').style.display = 'none';
+ }
}
},
More information about the Libreoffice-commits
mailing list