Merge pull request #1032 from thelounge/userlist-sticky

Stick to bottom when opening user list
This commit is contained in:
Jérémie Astori 2017-04-15 01:51:44 -04:00 committed by GitHub
commit 8627bbb713

View File

@ -729,6 +729,7 @@ $(function() {
var self = $(this); var self = $(this);
viewport.toggleClass(self.attr("class")); viewport.toggleClass(self.attr("class"));
e.stopPropagation(); e.stopPropagation();
chat.find(".chan.active .chat").trigger("msg.sticky");
}); });
function positionContextMenu(that, e) { function positionContextMenu(that, e) {
@ -822,7 +823,7 @@ $(function() {
+ Math.round(parseFloat(style.borderBottomWidth) || 0) + Math.round(parseFloat(style.borderBottomWidth) || 0)
) + "px"; ) + "px";
$("#chat .chan.active .chat").trigger("msg.sticky"); // fix growing chat.find(".chan.active .chat").trigger("msg.sticky"); // fix growing
}) })
.tab(complete, {hint: false}); .tab(complete, {hint: false});