From e3b50b8eebe4d410dbe258ce3f7e518b6e4dfe20 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Tue, 8 Mar 2016 19:57:50 +0000 Subject: [PATCH] Improve progress dialog positioning --- src/gui/html/js/dialog.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/gui/html/js/dialog.js b/src/gui/html/js/dialog.js index f515db02..0115910e 100644 --- a/src/gui/html/js/dialog.js +++ b/src/gui/html/js/dialog.js @@ -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(); } }