mirror of
https://github.com/hneemann/Digital.git
synced 2025-08-04 02:08:00 -04:00
ensures the tutorial dialog is on screen
This commit is contained in:
parent
1cb8df1a03
commit
cf5441acd9
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user