Visual Bug Fix

Language and CFR settings dialog display the bug best
This commit is contained in:
Konloch 2021-07-21 07:58:23 -07:00
parent 173b1937ff
commit e3d16031b8

View file

@ -175,14 +175,14 @@ public class BetterJOptionPane
}
}
onCreate.onCreate(dialog);
//check if the dialogue is in a poor location, attempt to correct
if (dialog.getLocation().getY() == 0 || dialog.getLocation().getY() == 1)
dialog.setLocationRelativeTo(null); //TODO check if BytecodeViewer.viewer is better on multi monitor for this edgecase
else
dialog.setLocationRelativeTo(BytecodeViewer.viewer);
onCreate.onCreate(dialog);
dialog.show();
dialog.dispose();