wrapped alignment 1 larger
authoramwaterhouse <Andrew Waterhouse>
Mon, 28 Nov 2005 17:14:23 +0000 (17:14 +0000)
committeramwaterhouse <Andrew Waterhouse>
Mon, 28 Nov 2005 17:14:23 +0000 (17:14 +0000)
src/jalview/appletgui/AlignmentPanel.java
src/jalview/gui/AlignmentPanel.java

index ea2cdee..3771a57 100755 (executable)
@@ -484,7 +484,7 @@ public class AlignmentPanel extends Panel implements AdjustmentListener
     {\r
       int max = av.alignment.getWidth() /\r
           seqPanel.seqCanvas.\r
-          getWrappedCanvasWidth(seqPanel.seqCanvas.getSize().width);\r
+          getWrappedCanvasWidth(seqPanel.seqCanvas.getSize().width) +1;\r
       vscroll.setMaximum(max);\r
       vscroll.setUnitIncrement(1);\r
       vscroll.setVisibleAmount(1);\r
index 43fb5fa..ed00d33 100755 (executable)
@@ -523,7 +523,7 @@ public class AlignmentPanel extends GAlignmentPanel
     if (av.getWrapAlignment())\r
     {\r
       int max = av.alignment.getWidth() /\r
-          seqPanel.seqCanvas.getWrappedCanvasWidth(seqPanel.seqCanvas.getWidth());\r
+          seqPanel.seqCanvas.getWrappedCanvasWidth(seqPanel.seqCanvas.getWidth()) +1;\r
       vscroll.setMaximum(max);\r
       vscroll.setUnitIncrement(1);\r
       vscroll.setVisibleAmount(1);\r