Open imziyang opened 5 years ago
When the position set to center, maybe caused an error:
center
TypeError: Error processing argument at index 0, conversion failure from
So I think the code:
this._win.setBounds({x: width / 4, y: height / 4, width: width / 2, height: height / 2}, this._config.animate)
need to be:
this._win.setBounds({x: Math.round(width / 4), y: Math.round(height / 4), width: Math.round(width / 2), height: Math.round(height / 2)}, this._config.animate)
emm, maybe the code in _startBounds is Math.round not Math.abs
_startBounds
Math.round
Math.abs
When the position set to
center
, maybe caused an error:TypeError: Error processing argument at index 0, conversion failure from
So I think the code:
need to be: