Unread scrolled upper

This commit is contained in:
Igor Zhukov 2014-03-16 16:17:10 +01:00
parent 016d5cba9e
commit eddd070d40

View File

@ -219,7 +219,7 @@ angular.module('myApp.directives', ['myApp.filters'])
var unreadSplit = $('.im_message_unread_split', scrollableWrap);
if (unreadSplit[0]) {
scrollableWrap.scrollTop = unreadSplit[0].offsetTop;
scrollableWrap.scrollTop = Math.max(0, unreadSplit[0].offsetTop - 52);
atBottom = false;
} else {
scrollableWrap.scrollTop = scrollableWrap.scrollHeight;