From: gmungoc Date: Thu, 6 Jul 2017 14:03:24 +0000 (+0100) Subject: JAL-2605 ensure correct scale width calculation X-Git-Tag: Release_2_10_3b1~132^2~45 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=376dbd7fc249003055af7e43df08883cf1ed282f;p=jalview.git JAL-2605 ensure correct scale width calculation --- diff --git a/src/jalview/appletgui/SeqCanvas.java b/src/jalview/appletgui/SeqCanvas.java index fa44e1e..0f10363 100755 --- a/src/jalview/appletgui/SeqCanvas.java +++ b/src/jalview/appletgui/SeqCanvas.java @@ -420,6 +420,9 @@ public class SeqCanvas extends Panel implements ViewportListenerI FontMetrics fm = getFontMetrics(av.getFont()); + LABEL_EAST = 0; + LABEL_WEST = 0; + if (av.getScaleRightWrapped()) { LABEL_EAST = fm.stringWidth(getMask()); diff --git a/src/jalview/gui/SeqCanvas.java b/src/jalview/gui/SeqCanvas.java index d4b8f77..fb41f86 100755 --- a/src/jalview/gui/SeqCanvas.java +++ b/src/jalview/gui/SeqCanvas.java @@ -495,6 +495,9 @@ public class SeqCanvas extends JComponent implements ViewportListenerI FontMetrics fm = getFontMetrics(av.getFont()); + LABEL_EAST = 0; + LABEL_WEST = 0; + if (av.getScaleRightWrapped()) { LABEL_EAST = fm.stringWidth(getMask());