Skip to content

fix: hide scrollbar in dropdown popup on Linux GTK#275

Open
Jah-yee wants to merge 1 commit into
microsoft:mainfrom
Jah-yee:fix/dropdown-scrollbar-linux
Open

fix: hide scrollbar in dropdown popup on Linux GTK#275
Jah-yee wants to merge 1 commit into
microsoft:mainfrom
Jah-yee:fix/dropdown-scrollbar-linux

Conversation

@Jah-yee
Copy link
Copy Markdown

@Jah-yee Jah-yee commented Jun 3, 2026

Fixes #113

Problem

On Linux GTK, the ScrolledComposite in DropdownPopup always renders a scrollbar
even when all content fits within the visible area. This causes detailed model
information displayed on hover tooltips to be cropped, as the scrollbar overlay
interferes with the rendering of hover content.

Fix

Added after creating the
ScrolledComposite in the constructor. This matches the pattern already used in
(line 258) and (line 119) in the same codebase.

Testing

  • Verified the fix aligns with existing patterns in the codebase
  • No functional change on Windows/macOS where scrollbars are hidden by default

The ScrolledComposite in DropdownPopup always shows a scrollbar on Linux GTK
even when content fits, causing hover tooltips to be cropped. Setting
alwaysShowScrollBars(false) ensures the scrollbar only appears when truly needed.

Fixes microsoft#113
Copilot AI review requested due to automatic review settings June 3, 2026 06:20
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR updates the SWT dropdown popup’s scrolled container configuration to improve scrollbar visibility/behavior.

Changes:

  • Disable always-on scrollbars for the dropdown’s ScrolledComposite.

scrolledComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
scrolledComposite.setExpandHorizontal(true);
scrolledComposite.setExpandVertical(true);
scrolledComposite.setAlwaysShowScrollBars(false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Detailed model information on dropdown hover is cropped on Linux

3 participants