From 4982c6685f9da2128c28a5d5614ba9367af29b99 Mon Sep 17 00:00:00 2001
From: juanf <juanf@bsse-bs-dock-dhcp-008.ethz.ch>
Date: Tue, 8 Jan 2019 16:14:30 +0100
Subject: [PATCH] SSDM-7618 : bugfix

---
 .../eln-lims/html/js/controllers/LayoutManager.js | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/controllers/LayoutManager.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/controllers/LayoutManager.js
index d72ecdea949..7ec3437b95a 100644
--- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/controllers/LayoutManager.js
+++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/controllers/LayoutManager.js
@@ -407,7 +407,14 @@ var LayoutManager = {
 		this.isLoadingView = true;
 
 		var isFirstTime = this.mainContainer === null || forceFirstTime === true || forceFirstTime === undefined;
-
+		
+		// sideMenuBody scroll fix
+		var firstColumnScroll = null;
+		if(this.FOUND_SIZE >= this.TABLET_SIZE) {
+			firstColumnScroll = $("#sideMenuBody").scrollTop();
+		}
+		//
+		
 		var width = $( window ).width();
 		if (width > this.DESKTOP_SIZE) {
 			if (this.FOUND_SIZE !== this.DESKTOP_SIZE) {
@@ -435,6 +442,12 @@ var LayoutManager = {
 			this._setMobileLayout(view, isFirstTime);
 		}
 		
+		// sideMenuBody scroll fix
+		if(this.FOUND_SIZE >= this.TABLET_SIZE && firstColumnScroll) {
+			$("#sideMenuBody").scrollTop(firstColumnScroll);
+		}
+		//
+		
 		this.triggerResizeEventHandlers();
 		this.isLoadingView = false;
 	},
-- 
GitLab