Overview follows cursor movement
authoramwaterhouse <Andrew Waterhouse>
Tue, 4 Apr 2006 10:58:29 +0000 (10:58 +0000)
committeramwaterhouse <Andrew Waterhouse>
Tue, 4 Apr 2006 10:58:29 +0000 (10:58 +0000)
src/jalview/appletgui/AlignmentPanel.java

index 30e1d70..b04946f 100755 (executable)
@@ -313,7 +313,6 @@ public class AlignmentPanel extends Panel implements AdjustmentListener
 \r
   public boolean scrollRight(boolean right)\r
   {\r
-\r
     if (!right)\r
     {\r
       if (hscroll.getValue() < 1)\r
@@ -382,6 +381,9 @@ public class AlignmentPanel extends Panel implements AdjustmentListener
     av.setEndSeq(endSeq);\r
     hscroll.setValues(x, hextent, 0, av.getAlignment().getWidth());\r
     vscroll.setValues(y, vextent, 0, av.getAlignment().getHeight());\r
+\r
+    if(overviewPanel!=null)\r
+          overviewPanel.setBoxPosition();\r
   }\r
 \r
   public void adjustmentValueChanged(AdjustmentEvent evt)\r