mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-05-09 04:23:01 -05:00
Allow seeing user list at low resolutions
This commit is contained in:
parent
905745f614
commit
8da30ea195
|
|
@ -632,6 +632,7 @@
|
|||
|
||||
var ChatRoom = this.ChatRoom = ConsoleRoom.extend({
|
||||
minWidth: 320,
|
||||
minMainWidth: 580,
|
||||
maxWidth: 1024,
|
||||
isSideRoom: true,
|
||||
initialize: function() {
|
||||
|
|
|
|||
|
|
@ -1211,11 +1211,12 @@
|
|||
return;
|
||||
}
|
||||
var leftMin = (this.curRoom.minWidth || this.curRoom.bestWidth);
|
||||
var leftMinMain = (this.curRoom.minMainWidth || leftMin);
|
||||
var rightMin = (this.sideRoom.minWidth || this.sideRoom.bestWidth);
|
||||
var available = $(window).width();
|
||||
if (this.curRoom.isSideRoom) {
|
||||
// we're trying to focus a side room
|
||||
if (available >= this.rooms[''].tinyWidth + leftMin) {
|
||||
if (available >= this.rooms[''].tinyWidth + leftMinMain) {
|
||||
// it fits to the right of the main menu, so do that
|
||||
this.curSideRoom = this.sideRoom = this.curRoom;
|
||||
this.curRoom = this.rooms[''];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user