mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-02 07:42:12 -05:00
Prevent roomtabs jumping to the side when switching rooms (#736)
See 07a339f62c (commitcomment-18000443)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user