From 0f9e00ed49ec59c268db6f15ac0f3feb562770db Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Wed, 23 May 2018 16:19:56 +0100 Subject: [PATCH] fix for JAL-2991 - we could do better :/ --- src/jalview/gui/SeqCanvas.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/jalview/gui/SeqCanvas.java b/src/jalview/gui/SeqCanvas.java index 2d8eb7d..8f315bd 100755 --- a/src/jalview/gui/SeqCanvas.java +++ b/src/jalview/gui/SeqCanvas.java @@ -652,6 +652,11 @@ public class SeqCanvas extends JComponent implements ViewportListenerI ViewportRanges ranges = av.getRanges(); ranges.setViewportStartAndWidth(startColumn, wrappedWidthInResidues); + // we need to call this again to make sure the startColumn + + // wrappedWidthInResidues values are used to calculate wrappedVisibleWidths + // correctly. + calculateWrappedGeometry(canvasWidth, canvasHeight); + /* * draw one width at a time (including any scales or annotation shown), * until we have run out of either alignment or vertical space available -- 1.7.10.2