From: amwaterhouse Date: Mon, 28 Nov 2005 17:14:23 +0000 (+0000) Subject: wrapped alignment 1 larger X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=56d38f8d7edde0f57249a2b7173437c9157f31e8;p=jalview.git wrapped alignment 1 larger --- diff --git a/src/jalview/appletgui/AlignmentPanel.java b/src/jalview/appletgui/AlignmentPanel.java index ea2cdee..3771a57 100755 --- a/src/jalview/appletgui/AlignmentPanel.java +++ b/src/jalview/appletgui/AlignmentPanel.java @@ -484,7 +484,7 @@ public class AlignmentPanel extends Panel implements AdjustmentListener { int max = av.alignment.getWidth() / seqPanel.seqCanvas. - getWrappedCanvasWidth(seqPanel.seqCanvas.getSize().width); + getWrappedCanvasWidth(seqPanel.seqCanvas.getSize().width) +1; vscroll.setMaximum(max); vscroll.setUnitIncrement(1); vscroll.setVisibleAmount(1); diff --git a/src/jalview/gui/AlignmentPanel.java b/src/jalview/gui/AlignmentPanel.java index 43fb5fa..ed00d33 100755 --- a/src/jalview/gui/AlignmentPanel.java +++ b/src/jalview/gui/AlignmentPanel.java @@ -523,7 +523,7 @@ public class AlignmentPanel extends GAlignmentPanel if (av.getWrapAlignment()) { int max = av.alignment.getWidth() / - seqPanel.seqCanvas.getWrappedCanvasWidth(seqPanel.seqCanvas.getWidth()); + seqPanel.seqCanvas.getWrappedCanvasWidth(seqPanel.seqCanvas.getWidth()) +1; vscroll.setMaximum(max); vscroll.setUnitIncrement(1); vscroll.setVisibleAmount(1);