[ai-completion] ML-3235 fix line height for multi-line rendering

GitOrigin-RevId: 3acb1caf387f23a3244254feb93682453ce82876
This commit is contained in:
Oleg Taratukhin
2024-05-02 15:19:55 +02:00
committed by intellij-monorepo-bot
parent 9a359dc3dd
commit bff80693b2

View File

@@ -52,8 +52,6 @@ class InlineCompletionLineRenderer(
override fun calcWidthInPixels(inlay: Inlay<*>): Int = maxOf(1, widths.sum())
override fun calcHeightInPixels(inlay: Inlay<*>): Int = InlineCompletionFontUtils.fontMetrics(editor).height
override fun paint(inlay: Inlay<*>, g: Graphics, targetRegion: Rectangle, textAttributes: TextAttributes) {
if (blocks.isEmpty()) {
return