git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'bug/JAL-2421overviewboxflicker' into
[jalview.git]
/
src
/
jalview
/
gui
/
AlignmentPanel.java
diff --git
a/src/jalview/gui/AlignmentPanel.java
b/src/jalview/gui/AlignmentPanel.java
index
3e24b94
..
146df38
100644
(file)
--- a/
src/jalview/gui/AlignmentPanel.java
+++ b/
src/jalview/gui/AlignmentPanel.java
@@
-91,9
+91,9
@@
public class AlignmentPanel extends GAlignmentPanel implements
// this value is set false when selection area being dragged
boolean fastPaint = true;
// this value is set false when selection area being dragged
boolean fastPaint = true;
- int hextent = 0;
+ private int hextent = 0;
- int vextent = 0;
+ private int vextent = 0;
/*
* Flag set while scrolling to follow complementary cDNA/protein scroll. When
/*
* Flag set while scrolling to follow complementary cDNA/protein scroll. When
@@
-688,7
+688,6
@@
public class AlignmentPanel extends GAlignmentPanel implements
*/
public void setScrollValues(int x, int y)
{
*/
public void setScrollValues(int x, int y)
{
- // System.err.println("Scroll " + this.av.viewName + " to " + x + "," + y);
if (av == null || av.getAlignment() == null)
{
return;
if (av == null || av.getAlignment() == null)
{
return;
@@
-698,6
+697,7
@@
public class AlignmentPanel extends GAlignmentPanel implements
if (av.hasHiddenColumns())
{
if (av.hasHiddenColumns())
{
+ // reset the width to exclude hidden columns
width = av.getColumnSelection().findColumnPosition(width);
}
width = av.getColumnSelection().findColumnPosition(width);
}
@@
-734,6
+734,8
@@
public class AlignmentPanel extends GAlignmentPanel implements
x = 0;
}
x = 0;
}
+
+ // update endRes after x has (possibly) been adjusted
av.setEndRes((x + (getSeqPanel().seqCanvas.getWidth() / av
.getCharWidth())) - 1);
av.setEndRes((x + (getSeqPanel().seqCanvas.getWidth() / av
.getCharWidth())) - 1);