From aa74943b01f9dd71bc9c3692a8a841231773b01a Mon Sep 17 00:00:00 2001 From: Pierre Date: Tue, 13 Jun 2017 17:03:02 +0200 Subject: [PATCH] Enabled slimScroll on conversation list --- assets/css/components/conversations/list.css | 4 ++++ assets/js/components/conversations/list.js | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/assets/css/components/conversations/list.css b/assets/css/components/conversations/list.css index 6c060da8..39b1b8c0 100644 --- a/assets/css/components/conversations/list.css +++ b/assets/css/components/conversations/list.css @@ -4,6 +4,10 @@ * @author Pierre HUBERT */ +.conversations-list-box ul { + max-height: 250px; +} + .conversations-list-box .last-activity { margin-left: 5px; color: #777; diff --git a/assets/js/components/conversations/list.js b/assets/js/components/conversations/list.js index 18fc408e..bdfdeecf 100644 --- a/assets/js/components/conversations/list.js +++ b/assets/js/components/conversations/list.js @@ -226,6 +226,11 @@ ComunicWeb.components.conversations.list = { ComunicWeb.components.conversations.list.showConversationEntry(conversationInfos, liElem, listBox); } + //Enable scrollbar + $(ulElem).slimScroll({ + height: '100%' + }); + }, true); //Success