Skip to content

Commit

Permalink
Merge pull request thelounge#1032 from thelounge/userlist-sticky
Browse files Browse the repository at this point in the history
Stick to bottom when opening user list
  • Loading branch information
astorije authored Apr 15, 2017
2 parents 83e8b80 + a9ceaa8 commit 9e54cac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/js/lounge.js
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,7 @@ $(function() {
var self = $(this);
viewport.toggleClass(self.attr("class"));
e.stopPropagation();
chat.find(".chan.active .chat").trigger("msg.sticky");
});

function positionContextMenu(that, e) {
Expand Down Expand Up @@ -822,7 +823,7 @@ $(function() {
+ Math.round(parseFloat(style.borderBottomWidth) || 0)
) + "px";

$("#chat .chan.active .chat").trigger("msg.sticky"); // fix growing
chat.find(".chan.active .chat").trigger("msg.sticky"); // fix growing
})
.tab(complete, {hint: false});

Expand Down

0 comments on commit 9e54cac

Please sign in to comment.