From 19842e7d0674a3f4235e66605e4079b3dbd58bb8 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Fri, 28 Jul 2017 17:39:56 +0200 Subject: [PATCH] JAL-2609 slightly better updating of left/right scales... --- src/jalview/gui/SeqCanvas.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/jalview/gui/SeqCanvas.java b/src/jalview/gui/SeqCanvas.java index 373389d..8c8b1d8 100755 --- a/src/jalview/gui/SeqCanvas.java +++ b/src/jalview/gui/SeqCanvas.java @@ -1234,6 +1234,7 @@ public class SeqCanvas extends JComponent implements ViewportListenerI visibleWidths++; } int viewportWidth = ranges.getViewportWidth(); + int hgap = charHeight * (av.getScaleAboveWrapped() ? 2 : 1); if (positions > 0) { @@ -1266,11 +1267,11 @@ public class SeqCanvas extends JComponent implements ViewportListenerI if (av.getScaleLeftWrapped()) { - // drawVerticalScale(gg, xpos, xpos + viewportWidth, y, true); + drawVerticalScale(gg, xpos, xpos + viewportWidth, y + hgap, true); } if (av.getScaleRightWrapped()) { - // drawVerticalScale(gg, xpos, xpos + viewportWidth, y, false); + drawVerticalScale(gg, xpos, xpos + viewportWidth, y + hgap, false); } y -= repeatHeight; @@ -1303,11 +1304,11 @@ public class SeqCanvas extends JComponent implements ViewportListenerI if (av.getScaleLeftWrapped()) { - drawVerticalScale(gg, xpos, xpos + viewportWidth, y, true); + drawVerticalScale(gg, xpos, xpos + viewportWidth, y + hgap, true); } if (av.getScaleRightWrapped()) { - drawVerticalScale(gg, xpos, xpos + viewportWidth, y, false); + drawVerticalScale(gg, xpos, xpos + viewportWidth, y + hgap, false); } y += repeatHeight; -- 1.7.10.2