Fix low-res userlist

The userlist in low-res mode now scrolls to top before collapsing,
which fixes the issue where it might not display the user-count
and toggle button.
This commit is contained in:
Guangcong Luo 2015-07-15 00:32:48 -04:00
parent 83d3d64be7
commit b96077039f
2 changed files with 5 additions and 3 deletions

View File

@ -1479,7 +1479,8 @@
'!': 9,
'‽': 10
},
toggleUserlist: function() {
toggleUserlist: function(e) {
e.stopPropagation();
if (this.$el.hasClass('userlist-minimized')) {
this.$el.removeClass('userlist-minimized');
this.$el.addClass('userlist-maximized');
@ -1493,6 +1494,7 @@
this.$el.removeClass('userlist-maximized');
},
hide: function() {
this.$el.scrollTop(0);
this.$el.addClass('userlist-minimized');
},
updateUserCount: function () {

View File

@ -1314,9 +1314,9 @@ div[class^='tournament-message-'], div[class*=' tournament-message-'] {
}
.userlist-maximized {
height: auto;
bottom: auto;
bottom: 0;
overflow: auto;
background: #EEF2F5;
border-bottom: 1px solid #AAAAAA;
}
.userlist-minimized .userlist-count,
.userlist-maximized .userlist-count {