This commit is contained in:
Jiiks 2015-10-14 09:47:08 +03:00
parent 8de747f3ce
commit a498bdf231
1 changed files with 3 additions and 0 deletions

View File

@ -217,6 +217,9 @@ EmoteModule.prototype.injectEmote = function(node) {
parent.innerHTML = parentInnerHTML;
var newHeight = parent.parentElement.offsetHeight;
var scrollPane = $($(".scroller.messages")[0])
scrollPane.scrollTop(scrollPane.scrollTop() + (newHeight - oldHeight));
console.log("heightdiff: " + (newHeight - oldHeight));
}