Prevent roomtabs jumping to the side when switching rooms (#736)

See 07a339f62c (commitcomment-18000443)
This commit is contained in:
asgdf
2016-06-30 08:23:16 +02:00
committed by Guangcong Luo
parent c0f4f8485c
commit 33eabdff6b

View File

@@ -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;