mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
[ai-completion] ML-3235 fix line height for multi-line rendering
GitOrigin-RevId: 3acb1caf387f23a3244254feb93682453ce82876
This commit is contained in:
committed by
intellij-monorepo-bot
parent
9a359dc3dd
commit
bff80693b2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user