diff --git a/TODO b/TODO index e170912..28f4a41 100644 --- a/TODO +++ b/TODO @@ -19,6 +19,7 @@ This is the internal list of items that need to be done. formats (Orca, APW, etc). * File viewer window now scrolls an appropriate amount: PgUp/PgDn, arrows, mousewheel all work (must select content area first of course). +* Wizard windows no longer show up with the title bar off the screen. --- FUTURE 1.3.x --- o Create reusable show dialog messages (they're scattered all over right now) to clean diff --git a/src/com/webcodepro/applecommander/ui/swt/util/SwtUtil.java b/src/com/webcodepro/applecommander/ui/swt/util/SwtUtil.java index ba4f0c5..8e7432f 100644 --- a/src/com/webcodepro/applecommander/ui/swt/util/SwtUtil.java +++ b/src/com/webcodepro/applecommander/ui/swt/util/SwtUtil.java @@ -40,6 +40,8 @@ public class SwtUtil { (parent.getSize().x - child.getSize().x) / 2; int y = parent.getLocation().y + (parent.getSize().y - child.getSize().y) / 2; + if (x < 0) x = 0; + if (y < 0) y = 0; child.setLocation(x,y); }