From f99168de06d4f0de8a05ba89f1b56cd0d7f578d0 Mon Sep 17 00:00:00 2001 From: Emmanuel ROHEE Date: Tue, 12 Aug 2014 18:11:38 +0200 Subject: Make messages list and room users list scroll-overflow --- webclient/room/room-controller.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'webclient/room/room-controller.js') diff --git a/webclient/room/room-controller.js b/webclient/room/room-controller.js index f3836c536b..e54751ef6d 100644 --- a/webclient/room/room-controller.js +++ b/webclient/room/room-controller.js @@ -33,7 +33,8 @@ angular.module('RoomController', []) } $scope.messages.push(chunk); $timeout(function() { - window.scrollTo(0, document.body.scrollHeight); + var objDiv = document.getElementsByClassName("messageTableWrapper")[0]; + objDiv.scrollTop = objDiv.scrollHeight; },0); } else if (chunk.room_id == $scope.room_id && chunk.type == "m.room.member") { -- cgit 1.4.1