From 56d38f8d7edde0f57249a2b7173437c9157f31e8 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Mon, 28 Nov 2005 17:14:23 +0000 Subject: [PATCH] wrapped alignment 1 larger --- src/jalview/appletgui/AlignmentPanel.java | 2 +- src/jalview/gui/AlignmentPanel.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); -- 1.7.10.2