-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Resizing window should keep current cell visible #12807
Comments
I'm not sure exactly what you're asking for here. Can you attach screenshots of the "before" and "after" UI, with markup to indicate what you are asking for? |
For example, when I have 600 cells and at last cell on maximazed window. After resize to 1/4 of screen size. The view could jump to the middle like number 400 of all the cells. |
This one is gonna be though. Basically the current focus is in the active cell (the one with blue border). So when you resize, JupyterLab will bring that focused cell in the view assuming it is the main focus. To change that, it will require to track the current cells seen in the viewport before the resize event. |
But it' s not the cell with blue border in view after resize? |
I concur with @xgdgsc, the active cell is not in the view after resizing for me either. I think that we have an agreement that it would be nice to call jupyterlab/packages/notebook/src/widget.ts Line 1599 in f573c4a
but it looks like jupyterlab/packages/notebook/src/widget.ts Lines 1739 to 1761 in f573c4a
Notes:
|
Also happens when using "New view for notebook". |
Also happens when toggle side bar with ctrl+b. |
Yes, this is an important and practically relevant issue.
This jump out-of-view prompts unnecessary searching and scrolling up and down, not even knowing where the previously visible cell (which is not always the active one) went. What a hassle, that disturbs the flow of work. |
Problem
Proposed Solution
Additional context
The text was updated successfully, but these errors were encountered: