Improve progress dialog positioning

This commit is contained in:
Oliver Hamlet
2016-03-08 19:57:50 +00:00
parent 0f0090ea7f
commit e3b50b8eeb
+2 -4
View File
@@ -16,16 +16,14 @@
if (!progressDialog.opened) {
progressDialog.open();
} else {
progressDialog.center();
progressDialog.refit();
}
}
static closeProgress() {
const progressDialog = document.getElementById('progressDialog');
if (progressDialog.opened) {
/* Center before closing so that when it is re-opened it does so in the
correct position. */
progressDialog.center();
progressDialog.refit();
progressDialog.close();
}
}