Skip to content

Fix: reserve dropdown popup scrollbar width to avoid suffix text cropping on GTK/Linux#1

Open
aniketsahu07 wants to merge 5 commits into
mainfrom
fix/dropdown-popup-scrollbar-padding
Open

Fix: reserve dropdown popup scrollbar width to avoid suffix text cropping on GTK/Linux#1
aniketsahu07 wants to merge 5 commits into
mainfrom
fix/dropdown-popup-scrollbar-padding

Conversation

@aniketsahu07
Copy link
Copy Markdown
Owner

Fix: reserve dropdown popup scrollbar width to avoid suffix text cropping on GTK/Linux

Motivation

  • On some Linux (GTK) setups the dropdown popup's suffix text gets cropped when a vertical scrollbar appears.
  • This change ensures the popup reserves the scrollbar width when sizing the content.

What I changed

  • In com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/swt/DropdownPopup.java:
    • Compute the scrolled content size and add the vertical scrollbar width to contentSize.x before setting the container size and min size.

How to test

  • In a GTK Linux environment, open the model dropdown that previously showed cropped suffix text.
  • Confirm the suffix is fully visible when the popup shows a vertical scrollbar.

Notes

  • Small, low-risk UI fix; no public API changes.
  • Suggest labels: good first issue, ui, bug.

Closes microsoft#113

@aniketsahu07 aniketsahu07 added good first issue Good for newcomers bug Something isn't working ui User interface / visual changes labels May 22, 2026
@aniketsahu07
Copy link
Copy Markdown
Owner Author

Thanks — good catch. I removed the scrollbar-width reservation from the initial sizing in open() and now only reserve the scrollbar width inside constrainHeightIfNeeded() when the popup becomes scrollable. This avoids double-reserving the width and prevents the dropdown from becoming wider than necessary. PTAL.

aniketsahu07 and others added 3 commits May 25, 2026 07:46
…d double-counting in constrainHeightIfNeeded()
* feat - LSP data layer + confirmationService skeleton (Auto-approve Part 1 ) (microsoft#132)

* feat: Terminal auto-approve with confirmation dialog enhancement (Auto-approve Part 2) (microsoft#171)

* revert splitDropdownButton padding change (microsoft#184)

* feat: File operation auto-approve with glob pattern rules (Auto-approve Part 3) (microsoft#216)

* add file operation approve logic

* resolve comments

* change default rules color

* resolve comments

* update test cases

* feat: MCP tool auto-approve and global auto-approve (Auto-approve Part 4) (microsoft#218)

* add mcp approve support and global approve support

* resolve comments

* fix test cases

* resolve comments and add token/policy check

* fix compile error

* Fix auto-approve preference page layout instability

* fix copilot comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working good first issue Good for newcomers ui User interface / visual changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Detailed model information on dropdown hover is cropped on Linux

2 participants