From 9105c9d857183b43e5161dbc0c2f7af034d8e4bc Mon Sep 17 00:00:00 2001 From: Chris Beer <cabeer@stanford.edu> Date: Thu, 14 Mar 2019 11:13:39 -0700 Subject: [PATCH] Increase vertical spacing by 20px --- __tests__/src/actions/window.test.js | 2 +- src/state/actions/window.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/__tests__/src/actions/window.test.js b/__tests__/src/actions/window.test.js index dd02d2a0a..a9aadc5b8 100644 --- a/__tests__/src/actions/window.test.js +++ b/__tests__/src/actions/window.test.js @@ -19,7 +19,7 @@ describe('window actions', () => { maximized: false, rangeId: null, x: 2760, - y: 2760, + y: 2800, sideBarPanel: 'info', width: 400, height: 400, diff --git a/src/state/actions/window.js b/src/state/actions/window.js index 197b11743..aa763fbb3 100644 --- a/src/state/actions/window.js +++ b/src/state/actions/window.js @@ -34,7 +34,7 @@ export function addWindow(options) { width: 400, height: 400, x: 2700 + (Math.floor(numWindows / 10) * 50 + (numWindows * 30) % 300), - y: 2700 + ((numWindows * 30) % 300), + y: 2700 + ((numWindows * 50) % 300), companionWindowIds: [cwDefault, cwThumbs], sideBarPanel: 'info', rotation: null, -- GitLab