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.

This commit is contained in:
Karishma Chadha 2018-10-21 00:25:50 -04:00
parent d690c76a34
commit ebdd548c8f

View file

@ -12,8 +12,8 @@ const MonitorRecord = Record({
mode: 'default', mode: 'default',
sliderMin: 0, sliderMin: 0,
sliderMax: 100, sliderMax: 100,
x: 0, x: null, // (x: null, y: null) Indicates that the monitor should be auto-positioned
y: 0, y: null,
width: 0, width: 0,
height: 0, height: 0,
visible: true visible: true