PY-81112 Jupyter: Notebook is scrolled suddenly to the beginning on opening and resizing right/left toolwindows

Signed-off-by: Nikita.Ashihmin <nikita.ashihmin@jetbrains.com>

GitOrigin-RevId: a684a15ef8d921ce3a16bd31ada96c2e9777cc7e
This commit is contained in:
Nikita.Ashihmin
2025-05-15 17:40:26 +04:00
committed by intellij-monorepo-bot
parent 50410aa5ad
commit e2aa1f15e5

View File

@@ -139,7 +139,7 @@ class NotebookPositionKeeper(val editor: EditorImpl) : Disposable.Default {
val newY = editor.offsetToXY(topLeftCornerOffset).y - viewportShift
if (visibleArea.y == newY)
return
scrollToY(-newY)
scrollToY(newY)
}
private fun scrollToY(newY: Int) {