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

Add scroll bar for horizontally overflowing, unshrinkable outputs #12077

Closed
wants to merge 1 commit into from

Conversation

mueslo
Copy link

@mueslo mueslo commented Feb 17, 2022

References

Fixes #12070

Code changes

.jp-OutputArea-child overflow auto instead of hidden.

User-facing changes

Adds a horizontal scroll bar for the case that horizontal overflow occurs.
image

In the general case of no overflow, no visual changes are present.

image

If output scrolling is enabled, the horizontal scrollbar will appear only once scrolled to the bottom (as it is in a different place in the DOM).

image
image

Backwards-incompatible changes

None.

@jupyterlab-probot
Copy link

Thanks for making a pull request to jupyterlab!
To try out this branch on binder, follow this link: Binder

@github-actions github-actions bot added Design System CSS pkg:outputarea tag:CSS For general CSS related issues and pecadilloes labels Feb 17, 2022
@fcollonval
Copy link
Member

Thanks for opening this PR @mueslo

The way changes are handled in JupyterLab is by always targeting the master branch and then backporting to production branch. This improves consistency and allows to backport easily to multiple branches if needed.

Could you please bring a PR against the master branch?

@mueslo
Copy link
Author

mueslo commented Feb 18, 2022 via email

@fcollonval
Copy link
Member

No problem - and thanks for pointing out that indeed this is not mentioned - I'll correct that.

As those CSS changes are not altering the look of the notebook, for this peculiar case we can backport #11508, #11814 and the up coming one.

@fcollonval fcollonval added the bug label Feb 18, 2022
@fcollonval fcollonval added this to the 3.3.x milestone Feb 18, 2022
@mueslo
Copy link
Author

mueslo commented Mar 4, 2022

No problem - and thanks for pointing out that indeed this is not mentioned - I'll correct that.

As those CSS changes are not altering the look of the notebook, for this peculiar case we can backport #11508, #11814 and the up coming one.

Thanks. Once #11508 is backported I think a different method can be used to bring the outputs back which will show the horizontal scroll bar at the same location in the DOM as the vertical scroll bar, which would also solve #4208

Is there any timeline of backporting those changes? Or would I need to initiate it?

@fcollonval
Copy link
Member

Could you please change the target (or close this PR and open a new one) to address this proposal against the master branch?

@fcollonval fcollonval modified the milestones: 3.3.x, 3.4.x Apr 14, 2022
@krassowski krassowski changed the base branch from 3.3.x to master January 16, 2023 21:15
@krassowski krassowski changed the base branch from master to 3.3.x January 16, 2023 21:16
@krassowski
Copy link
Member

It looks like closing this PR and opening a new one against master branch is the way to go. @mueslo are you still interested?

@mueslo mueslo closed this May 1, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Design System CSS pkg:outputarea tag:CSS For general CSS related issues and pecadilloes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants