if (labels != null && alignViewport.isShowAnnotation())
{
- int thisIdWidth = getWidth();
+ int getWidth = getWidth();
+ int thisIdWidth = getWidth;
g.translate(0, ypos + (alheight * charHeight));
if (!manuallyAdjusted())
{
int getAnnotationsIdWidth = labels.drawLabels(g, false, -1, false,
null);
thisIdWidth = idWidth < 0 ? getAnnotationsIdWidth : idWidth;
- if (thisIdWidth > getWidth())
+ if (thisIdWidth > getWidth)
{
this.setPreferredSize(
- new Dimension(this.getHeight(), thisIdWidth));
+ new Dimension(thisIdWidth, this.getHeight()));
this.repaint();
+ alignViewport.setIdWidth(thisIdWidth);
}
}
labels.drawComponent(g, false, thisIdWidth);