IJPL-449 Sticky lines: fix for incorrect status component position

GitOrigin-RevId: c275259c6bd309f12a0819f0ba57c6c259616ce2
This commit is contained in:
Aleksandr Trushev
2024-01-28 21:24:20 +01:00
committed by intellij-monorepo-bot
parent 05805ef45f
commit 2d497bd66e

View File

@@ -5619,8 +5619,8 @@ public final class EditorImpl extends UserDataHolderBase implements EditorEx, Hi
c.setBounds(r.width - d.width - rightInsets - 20, 20, d.width, d.height);
} else if (!(c instanceof StickyLinesPanel)) {
// Status component
int statusComponentX = myPanel.getWidth() - c.getWidth();
c.setLocation(statusComponentX, 0);
Dimension d = c.getPreferredSize();
c.setBounds(r.width - d.width, 0, d.width, d.height);
}
}
}