diff --git a/com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/swt/DropdownPopup.java b/com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/swt/DropdownPopup.java index 7b9dc2f0..2937e9e2 100644 --- a/com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/swt/DropdownPopup.java +++ b/com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/swt/DropdownPopup.java @@ -156,6 +156,9 @@ void open(Point location, List groups, String selectedItemId, populateGroups(container, groups); Point contentSize = container.computeSize(SWT.DEFAULT, SWT.DEFAULT); + // Keep sizing simple here. If the popup becomes scrollable we reserve + // scrollbar width in constrainHeightIfNeeded(), avoiding double-reserving + // the width when the scrollbar is detected in both places. container.setSize(contentSize); scrolledComposite.setMinSize(contentSize);