[MM-14135] allow negative window app positions (#1124)
* [MM-14135] allow negative positions to enable having the app on a monitor on the left of primary * remove logging
This commit is contained in:
@@ -7,9 +7,6 @@ import Utils from '../utils/util';
|
||||
const defaultOptions = {
|
||||
stripUnknown: true,
|
||||
};
|
||||
|
||||
const defaultMinWindowXPos = -100;
|
||||
const defaultMinWindowYPos = -100;
|
||||
const defaultWindowWidth = 1000;
|
||||
const defaultWindowHeight = 700;
|
||||
const minWindowWidth = 400;
|
||||
@@ -25,8 +22,8 @@ const argsSchema = Joi.object({
|
||||
});
|
||||
|
||||
const boundsInfoSchema = Joi.object({
|
||||
x: Joi.number().integer().min(defaultMinWindowXPos).default(0),
|
||||
y: Joi.number().integer().min(defaultMinWindowYPos).default(0),
|
||||
x: Joi.number().integer().default(0),
|
||||
y: Joi.number().integer().default(0),
|
||||
width: Joi.number().integer().min(minWindowWidth).required().default(defaultWindowWidth),
|
||||
height: Joi.number().integer().min(minWindowHeight).required().default(defaultWindowHeight),
|
||||
maximized: Joi.boolean().default(false),
|
||||
|
Reference in New Issue
Block a user