From: Jim Procter Date: Wed, 23 May 2018 15:19:56 +0000 (+0100) Subject: fix for JAL-2991 - we could do better :/ X-Git-Tag: Release_2_10_5~68^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=0f9e00ed49ec59c268db6f15ac0f3feb562770db;p=jalview.git fix for JAL-2991 - we could do better :/ --- 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