From 33eabdff6bb0499f81669a31f6af0ec49860ed84 Mon Sep 17 00:00:00 2001 From: asgdf Date: Thu, 30 Jun 2016 08:23:16 +0200 Subject: [PATCH] Prevent roomtabs jumping to the side when switching rooms (#736) See https://github.com/Zarel/Pokemon-Showdown-Client/commit/07a339f62c6d897f01ddeb539d28f05d49189d85#commitcomment-18000443 --- js/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/client.js b/js/client.js index b574498d9..c2eb6b05c 100644 --- a/js/client.js +++ b/js/client.js @@ -1471,7 +1471,7 @@ if (leftWidth < leftMinMain) { leftWidth = leftMinMain; } - if (this.curRoom.type === 'battle' && this.sideRoom.type === 'chat') { + if (this.curRoom.type === 'battle' && this.sideRoom.type !== 'battle') { // I give up; hardcoding var offset = Math.floor((available - leftMinMain - rightMin) / 2); if (offset > 0) leftWidth += offset;