mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[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:
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() {
|
||||
|
||||
Reference in New Issue
Block a user