Browse Source

Unread scrolled upper

master
Igor Zhukov 11 years ago
parent
commit
eddd070d40
  1. 2
      app/js/directives.js

2
app/js/directives.js

@ -219,7 +219,7 @@ angular.module('myApp.directives', ['myApp.filters']) @@ -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;

Loading…
Cancel
Save