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

Tamás Zolnai (via logerrit) logerrit at kemper.freedesktop.org
Thu Sep 10 11:21:38 UTC 2020


 loleaflet/src/control/Control.PartsPreview.js |    8 --------
 1 file changed, 8 deletions(-)

New commits:
commit 617dd6de0557085f957425e27711eb31052c7ac1
Author:     Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Thu Sep 10 12:45:37 2020 +0200
Commit:     Tamás Zolnai <tamas.zolnai at collabora.com>
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 <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Tamás Zolnai <tamas.zolnai at 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';
-			}
 		}
 	},
 


More information about the Libreoffice-commits mailing list