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:
1af07fa
)
JAL-2491 Tweaks to avoid scroll problems at bottom of wrapped alignment
author
kiramt
<k.mourao@dundee.ac.uk>
Mon, 8 May 2017 09:47:16 +0000
(10:47 +0100)
committer
kiramt
<k.mourao@dundee.ac.uk>
Mon, 8 May 2017 09:47:16 +0000
(10:47 +0100)
src/jalview/viewmodel/ViewportRanges.java
patch
|
blob
|
history
diff --git
a/src/jalview/viewmodel/ViewportRanges.java
b/src/jalview/viewmodel/ViewportRanges.java
index
72155aa
..
7a526c7
100644
(file)
--- a/
src/jalview/viewmodel/ViewportRanges.java
+++ b/
src/jalview/viewmodel/ViewportRanges.java
@@
-103,11
+103,7
@@
public class ViewportRanges extends ViewportProperties
}
this.startRes = startres;
- if (endres >= al.getWidth())
- {
- endres = al.getWidth() - 1;
- }
- else if (endres < 0)
+ if (endres < 0)
{
endres = 0;
}
@@
-287,11
+283,7
@@
public class ViewportRanges extends ViewportProperties
public void scrollToWrappedVisible(int res)
{
- if (res < startRes || res > endRes)
- {
- setEndSeq(res / getViewportWidth());
- }
-
+ setStartRes(res);
}
}