You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously we try to make sure the visual view position of the selected cell not change at all, but in this particular scenario, the previous cell gets executed and the cell height grows after outputs are rendered. I pushed a change to improve this and the current behavior is
if the cell gets executed is visible in the viewport (its top border is in the viewport), then when it grows, the view won't scroll, not matter if the focused element is in the viewport or not
if the cell gets executed is partially hidden (the top border is hidden), then we will try to ensure the focus element's position won't change
Note that Ctrl+Enter does not move the cell, from my experience, but naturally keeps the focus on the current cell.
I guess this is understandable since there is no change of focus contrary to Shift+Enter
Activity
rebornix commentedon Apr 21, 2021
I have a feeling it's related to #121140 (comment)
vscode-triage-bot commentedon Apr 21, 2021
Pinging
notebooktopic followers: Claudia Regio (@claudiaregio) Rich Chiodo (@rchiodo) Jim Griesmer (@greazer) Don Jayamanne (@DonJayamanne) jilljac (@jilljac)rebornix commentedon Apr 22, 2021
Previously we try to make sure the visual view position of the selected cell not change at all, but in this particular scenario, the previous cell gets executed and the cell height grows after outputs are rendered. I pushed a change to improve this and the current behavior is
fix #121723.
jrieken commentedon Apr 29, 2021
Better, but not gone...
up.mov
13 remaining items
roblourens commentedon May 23, 2022
I think this can be closed. Cell gets focused when executed and its scroll position is maintained
gilles-zerah commentedon Jan 23, 2023
Note that Ctrl+Enter does not move the cell, from my experience, but naturally keeps the focus on the current cell.
I guess this is understandable since there is no change of focus contrary to Shift+Enter
amunger commentedon Jan 23, 2025
The selected cell is typically used as the scroll anchor, and clicking the run button will now select the cell, so this should be resolved now.