From 7050afe69de0bcfb55cdd28c913fd75357148cd0 Mon Sep 17 00:00:00 2001 From: James Procter Date: Sun, 1 Oct 2023 13:26:54 +0100 Subject: [PATCH] JAL-244 JAL-4091 FIXME for JAL-3362 patch testCalculateIdWidth_withMaxWidth test for new annotation label marks --- src/jalview/gui/AlignmentPanel.java | 6 +++++- test/jalview/gui/AlignmentPanelTest.java | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/AlignmentPanel.java b/src/jalview/gui/AlignmentPanel.java index e2c91ba..cd9b70c 100644 --- a/src/jalview/gui/AlignmentPanel.java +++ b/src/jalview/gui/AlignmentPanel.java @@ -302,7 +302,11 @@ public class AlignmentPanel extends GAlignmentPanel implements /** * Calculate the width of the alignment labels based on the displayed names - * and any bounds on label width set in preferences. + * and any bounds on label width set in preferences. Also includes annotations + * not actually visible. + * + * FIXME JAL-244 JAL-4091 - doesn't include sequence associated annotation + * label decorators and only called during tests * * @param maxwidth * -1 or maximum width allowed for IdWidth diff --git a/test/jalview/gui/AlignmentPanelTest.java b/test/jalview/gui/AlignmentPanelTest.java index 86b22d5..37b8582 100644 --- a/test/jalview/gui/AlignmentPanelTest.java +++ b/test/jalview/gui/AlignmentPanelTest.java @@ -208,6 +208,7 @@ public class AlignmentPanelTest /** * Test the variant of calculateIdWidth that computes the longest of any * sequence name or annotation label width + * FIXME: test needs updating for JAL-244 and JAL-4091 */ @Test(groups = "Functional") public void testCalculateIdWidth_withMaxWidth() -- 1.7.10.2