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'])
var unreadSplit = $('.im_message_unread_split', scrollableWrap); var unreadSplit = $('.im_message_unread_split', scrollableWrap);
if (unreadSplit[0]) { if (unreadSplit[0]) {
scrollableWrap.scrollTop = unreadSplit[0].offsetTop; scrollableWrap.scrollTop = Math.max(0, unreadSplit[0].offsetTop - 52);
atBottom = false; atBottom = false;
} else { } else {
scrollableWrap.scrollTop = scrollableWrap.scrollHeight; scrollableWrap.scrollTop = scrollableWrap.scrollHeight;

Loading…
Cancel
Save