Browse Source

Scroll to top on emoji tooltip tab switch

master
Igor Zhukov 10 years ago
parent
commit
b9f3986828
  1. 1
      app/js/message_composer.js

1
app/js/message_composer.js

@ -276,6 +276,7 @@ EmojiTooltip.prototype.updateTabContents = function (tab) {
self.contentEl.html(html.join('')); self.contentEl.html(html.join(''));
if (!Config.Mobile) { if (!Config.Mobile) {
self.contentWrapEl.nanoScroller({scroll: 'top'});
setTimeout(function () { setTimeout(function () {
self.contentWrapEl.nanoScroller(); self.contentWrapEl.nanoScroller();
}, 100); }, 100);

Loading…
Cancel
Save