Stick to bottom when opening user list

Fixes #1031
This commit is contained in:
Pavel Djundik 2017-04-14 21:29:04 +03:00
parent 3e9678d9cf
commit fce3d11e74

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});