loleaflet/src/control/Control.PartsPreview.js | 8 -------- 1 file changed, 8 deletions(-)
New commits: commit 617dd6de0557085f957425e27711eb31052c7ac1 Author: Tamás Zolnai <[email protected]> AuthorDate: Thu Sep 10 12:45:37 2020 +0200 Commit: Tamás Zolnai <[email protected]> CommitDate: Thu Sep 10 13:21:19 2020 +0200 Revert "loleaflet: Hide portrait view previews on layout view." Leads to "TypeError: Cannot read property 'style' of null". This reverts commit aca07fec869117589a7b81b64328f39e02fc882d. Change-Id: I63678f735f698012ca89d5d0ef0ee9c1c8a1d6a2 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102372 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Tamás Zolnai <[email protected]> diff --git a/loleaflet/src/control/Control.PartsPreview.js b/loleaflet/src/control/Control.PartsPreview.js index dfc37beaf..6d7b6c3da 100644 --- a/loleaflet/src/control/Control.PartsPreview.js +++ b/loleaflet/src/control/Control.PartsPreview.js @@ -184,14 +184,6 @@ 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'; - } } }, _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
