Fix scrollbar occlusion of taskbar in desktop environments#214
Merged
Code-Hex merged 3 commits intoCode-Hex:mainfrom Feb 9, 2026
Merged
Fix scrollbar occlusion of taskbar in desktop environments#214Code-Hex merged 3 commits intoCode-Hex:mainfrom
Code-Hex merged 3 commits intoCode-Hex:mainfrom
Conversation
Contributor
Author
|
This PR is in relation to Enhancement (issue #210). Examples below of behavior with scrollbars enabled/disabled: Here are a few examples with just the scrollbars turned off Console (note the text is cut off on the bottom of the terminal):
Debian Trixie - KDE Plasma (this desktop isn't as bad as others about having important controls in the corner of the window:
And here is an example with scrollbars turned on, but zoomed all the way out:
|
The scrollbars interfere with window sizing and cause content to be cut off, especially on HiDPI displays and newer macOS versions (26.x). The NSScrollView is still needed for magnification/zoom support, but the scrollbars themselves are not necessary for normal operation. Changes: - Set hasVerticalScroller = NO - Set hasHorizontalScroller = NO - Set autohidesScrollers = YES (for any edge cases) This fixes the issue where the VZ window shows scrollbars that cut off approximately 16px of content in each direction.
0d25399 to
f5c1aff
Compare
When zoom mode is enabled, scrollbars now appear and support mouse wheel zooming with Cmd+scroll or Opt+scroll. When zoom is disabled, scrollbars are hidden and the view fits the window. This makes zoom functional on devices without trackpads.
f5c1aff to
91ace1e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Scrollbars currently occlude ~16px on each edge, making taskbars in Linux desktop environments unusable.
This disables scrollbars by default and adds scroll wheel zoom. Scrollbars re-enable automatically when zoomed.
hasVerticalScroller / hasHorizontalScroller = NO:
Makes desktop taskbars fully accessible. NSScrollView remains for magnification support.
Scroll wheel zoom (Cmd+scroll / Opt+scroll):
Adjusts NSScrollView magnification. Useful on devices without trackpad pinch-zoom.
Dynamic scrollbar management:
Also included:
.gitignore for example binaries
Tested with gui-linux example running Debian.