mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 06:50:54 +07:00
PY-65441 Fix text outputs render
GitOrigin-RevId: f3691b3fc3a64b2828536f7823bba4f1629b910b
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4bbb0570f5
commit
5eb09e47b4
@@ -91,6 +91,9 @@ class NotebookCellInlayManager private constructor(val editor: EditorImpl) : Not
|
||||
// Many UI instances has overridden getPreferredSize relying on editor dimensions.
|
||||
inlay.renderer?.asSafely<JComponent>()?.updateUI()
|
||||
}
|
||||
_cells.forEach {
|
||||
it.onViewportChange()
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -114,6 +114,11 @@ class EditorCell(
|
||||
output?.updatePositions()
|
||||
}
|
||||
|
||||
fun onViewportChange() {
|
||||
input.onViewportChange()
|
||||
output?.onViewportChange()
|
||||
}
|
||||
|
||||
companion object {
|
||||
private val LOG = logger<EditorCell>()
|
||||
}
|
||||
|
||||
@@ -83,6 +83,10 @@ internal class EditorCellInput(
|
||||
fun updatePositions() {
|
||||
folding.updatePosition()
|
||||
}
|
||||
|
||||
fun onViewportChange() {
|
||||
inputController?.onViewportChange()
|
||||
}
|
||||
}
|
||||
|
||||
private fun String.ellipsis(length: Int): String {
|
||||
|
||||
@@ -17,4 +17,8 @@ internal class EditorCellOutput(editor: EditorEx, private val outputController:
|
||||
folding.dispose()
|
||||
}
|
||||
|
||||
fun onViewportChange() {
|
||||
outputController.onViewportChange()
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user