Window is okay after the first click at the button and is expected to be at the center of screen but on the next clicks, it doesn't go to the center and goes to other position.
See pictures for reference.
Code Below:
$scope.EditModal;
$scope.OpenWindow = function ()
{
$scope.DlgOptions = {
width: 1350,
visible: false,
draggable: false,
actions: [
"Close"
],
};
$scope.EditModal.setOptions($scope.DlgOptions);
$scope.EditModal.center().open();
};