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

editor: Hide horizontal scrollbar if not visible (cherry-pick #23337) #23338

Open
wants to merge 1 commit into
base: v0.169.x
Choose a base branch
from

Conversation

gcp-cherry-pick-bot[bot]
Copy link

Cherry-picked editor: Hide horizontal scrollbar if not visible (#23337)

This PR fixes two visual issues, that were caused by the fact that we
were always painting the horizontal scrollbar even if there is no
horizontal scrolling possible

Obscuring deleted lines when using the inline assistant:

Screen.Recording.2025-01-18.at.22.20.39.mov

Cutting off text even when horizontal scrolling is not possible:

Screen.Recording.2025-01-18.at.22.29.54.mov

This issue was only present in some themes (e.g. Nord, Catpuccin)

Closes #22716

Release Notes:

  • Fixed an issue where horizontal scrollbars of editors would always be
    painted (even if there is no horizontal scrolling to be done)

This PR fixes two visual issues, that were caused by the fact that we
were always painting the horizontal scrollbar even if there is no
horizontal scrolling possible

Obscuring deleted lines when using the inline assistant:

https://github.com/user-attachments/assets/f8460c3f-403e-40a6-8622-65268ba2d875

Cutting off text even when horizontal scrolling is not possible:

https://github.com/user-attachments/assets/23c909f7-1c23-4693-8edc-40a2f089d4a8

This issue was only present in some themes (e.g. Nord, Catpuccin)


Closes #22716

Release Notes:

- Fixed an issue where horizontal scrollbars of editors would always be
painted (even if there is no horizontal scrolling to be done)
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant