From: James Procter Date: Sun, 1 Oct 2023 12:26:54 +0000 (+0100) Subject: JAL-244 JAL-4091 FIXME for JAL-3362 patch testCalculateIdWidth_withMaxWidth test... X-Git-Tag: Release_2_11_3_0~6^2~9 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=7050afe69de0bcfb55cdd28c913fd75357148cd0;p=jalview.git JAL-244 JAL-4091 FIXME for JAL-3362 patch testCalculateIdWidth_withMaxWidth test for new annotation label marks --- 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()