JAL-4282 make sure font is updated in alignPanel before doing any layout
authorJames Procter <j.procter@dundee.ac.uk>
Fri, 8 Sep 2023 14:57:42 +0000 (15:57 +0100)
committerJames Procter <j.procter@dundee.ac.uk>
Fri, 8 Sep 2023 15:00:08 +0000 (16:00 +0100)
src/jalview/project/Jalview2XML.java

index af3b2c8..339a609 100644 (file)
@@ -5111,6 +5111,7 @@ public class Jalview2XML
     }
     af.setBounds(safeInt(view.getXpos()), safeInt(view.getYpos()),
             safeInt(view.getWidth()), safeInt(view.getHeight()));
+    af.alignPanel.fontChanged(); // make sure font is updated *before* we set ID width
     // startSeq set in af.alignPanel.updateLayout below
     af.alignPanel.updateLayout();
     ColourSchemeI cs = null;