From: James Procter Date: Tue, 31 Oct 2023 12:33:03 +0000 (+0000) Subject: JAL-4260 right align the annotation labels regardless of width in wrapped mode. X-Git-Tag: Release_2_11_4_0~122^2~3 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=8ecde76adb5ba58ed98ee23b94c75b69f7877bb1;p=jalview.git JAL-4260 right align the annotation labels regardless of width in wrapped mode. --- 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