Merge branch 'bug/JAL-2421overviewboxflicker' into
authorkiramt <k.mourao@dundee.ac.uk>
Tue, 21 Feb 2017 10:55:07 +0000 (10:55 +0000)
committerkiramt <k.mourao@dundee.ac.uk>
Tue, 21 Feb 2017 10:55:07 +0000 (10:55 +0000)
features/JAL-2388OverviewWindow

Conflicts:
src/jalview/gui/AlignmentPanel.java

1  2 
src/jalview/gui/AlignmentPanel.java

@@@ -91,9 -91,9 +91,9 @@@ public class AlignmentPanel extends GAl
    // 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
     */
    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.hasHiddenColumns())
      {
+       // reset the width to exclude hidden columns
        width = av.getColumnSelection().findColumnPosition(width);
      }
  
        x = 0;
      }
  
++
+     // update endRes after x has (possibly) been adjusted
      av.setEndRes((x + (getSeqPanel().seqCanvas.getWidth() / av
              .getCharWidth())) - 1);