-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Improve cell toolbar tracker #15314
Improve cell toolbar tracker #15314
Conversation
Thanks for making a pull request to jupyterlab! |
I think it is safe to be backported 4.0.x. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for the review @krassowski
The last commit should fix the full windowing mode issue.
@jupyterlab-bot please restart ci |
@jupyterlab-bot, please restart ci |
cc @jtpio 🎉 🚀 |
One more rough edge with the latest commit. Scenario:
Reproduces reliably multiple times, in both Chrome and Firefox.
|
Rebasing to include #15286 to see if the latest issue still arises. |
Co-authored-by: Michał Krassowski <5832902+krassowski@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @fcollonval it does seem to work well now.
I wonder if the toolbar could live outside of cell (be parented to notebook, not cell) and positioned manually to avoid performance penalty of reattaching it to DOM on cell change, but this is less of a problem with windowed notebooks and a separate conversation.
@meeseeksdev please backport to 4.0.x |
Co-authored-by: Frédéric Collonval <fcollonval@users.noreply.github.com>
References
Fixes #14481
Closes #14139
A new toolbar is generated when the active cell changes - this is the only way we will be able to address feature like #13153; or to be able to customize the button depending on the cell model (like the type or tags)
Fixes #14380
Code changes
User-facing changes
None
Backwards-incompatible changes
None