Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrolling to heading does not work for un-rendered markdown cells in defer/none mode #15613

Open
krassowski opened this issue Jan 6, 2024 · 0 comments
Milestone

Comments

@krassowski
Copy link
Member

Description

Even after #15386 scrolling to heading does not work for un-renderd markdown cells.

This does not happen every time, but I was able to reproduce this in both 4.0.10 on binder reliably. In particular adding a new cell "fixes" this for a while.

This is a follow up to #14591 (comment)

Reproduce

  1. Set windowing mode to defer (default)
  2. Open a notebook longer than viewport with two headings
  3. See that ToC works by jumping between headings
  4. Un-render the markdown cells
  5. See that ToC no longer works (even though cells are switched, they are not scrolled to)
  6. Add a new markdown cell with a new heading
  7. See that ToC works again

Full repro in 4.0.10 from fresh load:

4 0 10-repro-with-pseudo-fix

Also in 4.1.0b0

4 1 0b0

Expected behavior

The ToC works reliably.

Context

  • Browser and version: Chrome
  • JupyterLab version: 4.0.10 and 4.1.0b0 (and earlier)
@krassowski krassowski added bug pkg:toc status:Needs Triage Applied to new issues that need triage labels Jan 6, 2024
@krassowski krassowski added this to the 4.0.x milestone Jan 6, 2024
@JasonWeill JasonWeill changed the title Scrolling to heading does not work for un-renderd markdown cells in defer/none mode Scrolling to heading does not work for un-rendered markdown cells in defer/none mode Jan 9, 2024
@JasonWeill JasonWeill removed the status:Needs Triage Applied to new issues that need triage label Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants