ensures the tutorial dialog is on screen

This commit is contained in:
hneemann 2022-02-11 12:09:12 +01:00
parent 1cb8df1a03
commit cf5441acd9

View File

@ -191,7 +191,7 @@ public class InitialTutorial extends JDialog implements CircuitComponent.Tutoria
pack(); pack();
final Point ml = main.getLocation(); final Point ml = main.getLocation();
setLocation(ml.x - getWidth(), ml.y); setLocation(Math.max(0, ml.x - getWidth()), ml.y);
stepIndex = -1; stepIndex = -1;
incIndex(); incIndex();