loleaflet/src/control/Control.PartsPreview.js | 8 -------- 1 file changed, 8 deletions(-)
New commits: commit 83b2af7108dd85fd4371f254210af58d045482da Author: Tamás Zolnai <tamas.zol...@collabora.com> AuthorDate: Thu Sep 10 12:45:37 2020 +0200 Commit: Aron Budea <aron.bu...@collabora.com> CommitDate: Thu Sep 10 16:45:02 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 <jenkinscollaboraoff...@gmail.com> Reviewed-by: Tamás Zolnai <tamas.zol...@collabora.com> (cherry picked from commit 617dd6de0557085f957425e27711eb31052c7ac1) Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102312 Reviewed-by: Aron Budea <aron.bu...@collabora.com> 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 libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits