From 8da30ea195f3e1becf4691f6e100a970cfd708cf Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Wed, 18 Dec 2013 19:10:34 -0600 Subject: [PATCH] Allow seeing user list at low resolutions --- js/client-chat.js | 1 + js/client.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/js/client-chat.js b/js/client-chat.js index 89def280a..087deccba 100644 --- a/js/client-chat.js +++ b/js/client-chat.js @@ -632,6 +632,7 @@ var ChatRoom = this.ChatRoom = ConsoleRoom.extend({ minWidth: 320, + minMainWidth: 580, maxWidth: 1024, isSideRoom: true, initialize: function() { diff --git a/js/client.js b/js/client.js index 154457f02..1649a25bd 100644 --- a/js/client.js +++ b/js/client.js @@ -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[''];