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

Loading…
Cancel
Save