mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 19:40:45 +00:00
opening dialogs on same screen as the main window, do not restore window size to larger value that actual screen size Fixed [#1768], [#1768] Maximizing window on other than main monitor
This commit is contained in:
@@ -109,7 +109,7 @@ public class LoadingDialog extends AppDialog {
|
||||
pack();
|
||||
Dimension siz = getSize();
|
||||
setSize(Math.max(300, 150 + getFontMetrics(new JLabel().getFont()).stringWidth(translate("loadingpleasewait"))), siz.height);
|
||||
View.centerScreen(this);
|
||||
View.centerScreenMain(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user