[editor-inlay] revalidate and repaint inlay container when inlays are added or removed

Without this an inlay could be left stuck at an undefined size/position until the next editor re-layout

GitOrigin-RevId: a09883bba23ddf924da97c3c67905aea1067ba58
This commit is contained in:
Ivan Semenov
2024-04-02 12:08:38 +00:00
committed by intellij-monorepo-bot
parent 9a89547b2f
commit 2a8ca61368
@@ -132,6 +132,10 @@ private class ComponentInlaysContainer private constructor(val editor: EditorEx)
else -> Unit
}
remove(renderer.component)
if (!editor.isDisposed) {
revalidate()
repaint()
}
return true
}
@@ -154,6 +158,10 @@ private class ComponentInlaysContainer private constructor(val editor: EditorEx)
}
else -> Unit
}
if (renderer.component.isVisible) {
revalidate()
repaint()
}
}
override fun invalidate() {