-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
Notebook scrolling out of sync #153708
Comments
From #148164 (comment) - Unsure if this case is meant by that but if it is too hard did you consider some creative workaround, like animating the scrolling (positioning of markdown) might make it look less chunky and more "fluent" |
(what the heck... it seems GH confuses the default commenting command and I keep closing/re-opening issues) |
The first one shows an editor adding and removing the horizontal scroll bar, I have no idea why that would happen and can't repro it, any idea @rebornix? The second is editors getting their scrollbars, we don't know whether they will overflow until they are rendered. I'm not sure whether that would be fixed by keeping view state across the model reload, like the other issue. I'm not that motivated to work more on these specific cases because a model reload is probably not actually that common. The most common case would probably be doing a |
Can you explain to me why the handling of reload is different from clear all output (or an API notebook edit)? |
You are replacing all cells with a totally different set of cells, vs editing an existing cell. Or inserting some cells with a notebook edit that are probably actually new. |
Looking at that first gif again, clearly there is something messed up with the editor. Regarding the editors resizing when scrolled into view, this can show up in other cases and I'd like to do something about it. We could do a better at guessing whether the editor will get a scrollbar (early on tried to do an accurate estimate of text width in the editor, turns out to be complex) or we can render editors ahead of the viewport, like we already do for outputs. I guess we only aren't doing that currently for the expense. I guess I should say that a model reset is an easy way to repro the issue, but this will show up in other more common scenarios too and we should definitely keep trying to improve. @rebornix was also continuing a leftover investigation item this week from #148164, which would improve the case of a model reset while scrolled near the bottom of the list. |
In the first gif, the editor of the first visible code cell is always in the viewport, meaning there is no re-render while slightly scrolling up and down. However the horizontal bar hides sometimes, it feels wrong to me. |
* Fix shifting in cell editors that have horizontal scrollbars, for #153708 * use BaseCellEditorOptions to check wordwrap
When I follow the directions and run |
The outputs are going to be cleared because they aren't saved. But when you scroll up after this model reload, there should be less jumping with the markdown cells Edit - oh, this was an old one... |
related #148164
touch <path>
Recording of the recording
Screen.Recording.2022-06-29.at.17.40.30.mov
Recording of the scroll
Screen.Recording.2022-06-29.at.17.37.18.mov
The text was updated successfully, but these errors were encountered: