mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Revert "lst: do not use hardcoded constant"
EA-80375 - NPE: LineStatusTrackerDrawing$PopupPanel.getEditorTextOffset
There are no editor for added lines, but we want popup to always have the same offset.
This reverts commit 87624908fd.
This commit is contained in:
@@ -480,7 +480,7 @@ public class LineStatusTrackerDrawing {
|
||||
}
|
||||
|
||||
private static class PopupPanel extends JPanel {
|
||||
private final JComponent myEditorComponent;
|
||||
@Nullable private final JComponent myEditorComponent;
|
||||
|
||||
public PopupPanel(@NotNull final Editor editor,
|
||||
@NotNull ActionToolbar toolbar,
|
||||
@@ -548,7 +548,7 @@ public class LineStatusTrackerDrawing {
|
||||
}
|
||||
|
||||
public int getEditorTextOffset() {
|
||||
return myEditorComponent.getInsets().left;
|
||||
return 3; // myEditorComponent.getInsets().left
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user