JAL-244 Fix window size narrow adjustment not becoming a manual adjustment clash feature/JAL-244_Automatically_adjust_left_margin_to_avoid_cropping_annotation_labels
authorBen Soares <b.soares@dundee.ac.uk>
Wed, 9 Aug 2023 12:07:43 +0000 (13:07 +0100)
committerBen Soares <b.soares@dundee.ac.uk>
Wed, 9 Aug 2023 12:07:43 +0000 (13:07 +0100)
src/jalview/gui/AlignmentPanel.java

index 9f8aac6..0442c8b 100644 (file)
@@ -898,6 +898,9 @@ public class AlignmentPanel extends GAlignmentPanel implements
         // need to make some adjustments
         idWidth -= (sc.getMinimumWrappedCanvasWidth() - sc.getWidth());
         av.setIdWidth(idWidth);
+        av.getAlignPanel().getIdPanel().getIdCanvas()
+                .setManuallyAdjusted(true);
+
         validateAnnotationDimensions(false);
       }
     }