git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
09ddd1f
)
hack to ensure that if window geometry was not stored correctly, windows are not...
author
jprocter
<Jim Procter>
Sun, 19 Sep 2010 16:34:58 +0000
(16:34 +0000)
committer
jprocter
<Jim Procter>
Sun, 19 Sep 2010 16:34:58 +0000
(16:34 +0000)
src/jalview/gui/Desktop.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/Desktop.java
b/src/jalview/gui/Desktop.java
index
8531e04
..
cf89494
100755
(executable)
--- a/
src/jalview/gui/Desktop.java
+++ b/
src/jalview/gui/Desktop.java
@@
-414,6
+414,14
@@
public class Desktop extends jalview.jbgui.GDesktop implements
iw = (int) (iw * sw);
iy = (int) (iy * sh);
ih = (int) (ih * sh);
iw = (int) (iw * sw);
iy = (int) (iy * sh);
ih = (int) (ih * sh);
+ while (ix>=screenSize.width) {
+ jalview.bin.Cache.log.debug("Window geometry location recall error: shifting horizontal to within screenbounds.");
+ ix-=screenSize.width;
+ }
+ while (iy>=screenSize.height) {
+ jalview.bin.Cache.log.debug("Window geometry location recall error: shifting vertical to within screenbounds.");
+ iy-=screenSize.height;
+ }
jalview.bin.Cache.log.debug("Got last known dimensions for "
+ windowName + ": x:" + ix + " y:" + iy + " width:" + iw
+ " height:" + ih);
jalview.bin.Cache.log.debug("Got last known dimensions for "
+ windowName + ": x:" + ix + " y:" + iy + " width:" + iw
+ " height:" + ih);