// Also check annotation label widths
if (includeAnnotations && al.getAlignmentAnnotation() != null)
{
- fm = c.getFontMetrics(getAlabels().getFont());
+ if (legacy)
+ {
+ fm = c.getFontMetrics(getAlabels().getFont());
+ }
if (!legacy || Jalview.isHeadlessMode())
{
return idwidth.intValue() + ID_WIDTH_PADDING;
}
- int w = getIdPanel().getWidth();
- w = calculateIdWidth(-1, true, true).width;
+ // int w = getIdPanel().getWidth();
+ // w = calculateIdWidth(-1, true, true).width;
+ int w = calculateIdWidth(-1, true, true).width;
return (w > 0 ? w : calculateIdWidth().width);
}