From ebdd548c8faf15652c0cf714ad30a44186914d80 Mon Sep 17 00:00:00 2001 From: Karishma Chadha Date: Sun, 21 Oct 2018 00:25:50 -0400 Subject: [PATCH] Update for auto-positioning monitors so that having just one of x or y be 0 (e.g. a monitor placed in the top right corner of the stage) does not result in the monitor being treated as a new monitor and get auto-positioned. --- src/engine/monitor-record.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/monitor-record.js b/src/engine/monitor-record.js index 925b7c5f..daa6f9db 100644 --- a/src/engine/monitor-record.js +++ b/src/engine/monitor-record.js @@ -12,8 +12,8 @@ const MonitorRecord = Record({ mode: 'default', sliderMin: 0, sliderMax: 100, - x: 0, - y: 0, + x: null, // (x: null, y: null) Indicates that the monitor should be auto-positioned + y: null, width: 0, height: 0, visible: true