Skip to content

Commit 8e62f85

Browse files
committed
Disable scrollbars in VZ window
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.
1 parent 15b346c commit 8e62f85

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

virtualization_view.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -653,8 +653,9 @@ - (void)toggleZoomMode:(id)sender
653653
- (NSScrollView *)createScrollViewForVirtualMachineView:(VZVirtualMachineView *)view
654654
{
655655
NSScrollView *scrollView = [[[NSScrollView alloc] initWithFrame:_window.contentView.bounds] autorelease];
656-
scrollView.hasVerticalScroller = YES;
657-
scrollView.hasHorizontalScroller = YES;
656+
scrollView.hasVerticalScroller = NO;
657+
scrollView.hasHorizontalScroller = NO;
658+
scrollView.autohidesScrollers = YES;
658659
scrollView.autoresizingMask = NSViewWidthSizable | NSViewHeightSizable;
659660
scrollView.documentView = view;
660661

0 commit comments

Comments
 (0)