[PR #14329] Prevent conhost scrollbar overlapping content #30054

Closed
opened 2026-01-31 09:38:22 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/14329

State: closed
Merged: Yes


Prior to this PR, the conhost vertical scrollbar would be forced to be
visible whenever the "Disable Scroll-Forward" option was set. It was
assumed that it would be needed as soon as the current viewport was
filled, so it was better to start off visible and disabled.

When the viewport height and buffer height are the same, though, the
scrollbar is never needed, and conhost compensates for that by making
the window narrower. But since we were still forcing the scrollbar to be
visible, that would result in it overlapping content in the rightmost
columns.

This PR attempts to fix that issue by simply leaving the scrollbar to
decide the visibility itself. This is perhaps not as aesthetically
pleasing when it starts off hidden and then later becomes visible, but
that seems better than having it overlap the content.

I've manually confirmed this fixes the problem reported in issue #2449.

Closes #2449

**Original Pull Request:** https://github.com/microsoft/terminal/pull/14329 **State:** closed **Merged:** Yes --- Prior to this PR, the conhost vertical scrollbar would be forced to be visible whenever the "Disable Scroll-Forward" option was set. It was assumed that it would be needed as soon as the current viewport was filled, so it was better to start off visible and disabled. When the viewport height and buffer height are the same, though, the scrollbar is never needed, and conhost compensates for that by making the window narrower. But since we were still forcing the scrollbar to be visible, that would result in it overlapping content in the rightmost columns. This PR attempts to fix that issue by simply leaving the scrollbar to decide the visibility itself. This is perhaps not as aesthetically pleasing when it starts off hidden and then later becomes visible, but that seems better than having it overlap the content. I've manually confirmed this fixes the problem reported in issue #2449. Closes #2449
claunia added the pull-request label 2026-01-31 09:38:22 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#30054