From 8ecde76adb5ba58ed98ee23b94c75b69f7877bb1 Mon Sep 17 00:00:00 2001 From: James Procter Date: Tue, 31 Oct 2023 12:33:03 +0000 Subject: [PATCH] JAL-4260 right align the annotation labels regardless of width in wrapped mode. --- src/jalview/gui/AnnotationLabels.java | 2 +- src/jalview/gui/IdCanvas.java | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/jalview/gui/AnnotationLabels.java b/src/jalview/gui/AnnotationLabels.java index a0d70b4..08a25ba 100755 --- a/src/jalview/gui/AnnotationLabels.java +++ b/src/jalview/gui/AnnotationLabels.java @@ -1246,7 +1246,7 @@ public class AnnotationLabels extends JPanel else { int newAnnotationIdWidth = drawLabels(g, clip, width, false, forGUI, null, false); - width = Math.max(newAnnotationIdWidth, givenWidth); + width = newAnnotationIdWidth