mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-12-21 17:29:55 +00:00
Fixed window positioning routine to keep window title visible.
This commit is contained in:
parent
8464a53119
commit
89877c161e
1
TODO
1
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
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user