mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Improve progress dialog positioning
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user