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:
Aleksey Pivovarov
2016-03-11 11:52:58 +03:00
parent 9675e0248a
commit 6c8f1a0aae
@@ -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
}
}
}