Skip to content

Cell moves up when output comes #121723

Closed
Closed

Description

  • see recording
  • no clear steps but I believe this happens when running a cell that isn't selected
Screen.Recording.2021-04-20.at.12.20.59.mov

Activity

  1. added
    bug
    on Apr 21, 2021
  2. rebornix commented on Apr 21, 2021

    @rebornix
    Contributor

    I have a feeling it's related to #121140 (comment)

  3. rebornix commented on Apr 22, 2021

    @rebornix
    Contributor

    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
  4. added a commit that references this issue on Apr 22, 2021
    2d12c84
  5. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Apr 22, 2021
  6. jrieken commented on Apr 29, 2021

    @jrieken
    ContributorAuthor

    Better, but not gone...

    up.mov
  7. removed
    insiders-released
    on Apr 29, 2021
  8. 13 remaining items

  9. roblourens commented on May 23, 2022

    @roblourens
    Member

    I think this can be closed. Cell gets focused when executed and its scroll position is maintained

  10. removed this from the On Deck milestone on May 23, 2022
  11. gilles-zerah commented on Jan 23, 2023

    @gilles-zerah

    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

  12. amunger commented on Jan 23, 2025

    @amunger
    Collaborator

    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.

  13. locked and limited conversation to collaborators on Mar 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugdebtnotebook-layout

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions