Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 428326

Summary: [Combo][CCombo] Drop-down list does not adapt to item text size
Product: [RT] RAP Reporter: Ralf Sternberg <rsternberg>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: jfaltermeier, mknauer
Version: 2.3   
Target Milestone: 2.3 M3   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Ralf Sternberg CLA 2014-02-17 04:52:54 EST
Example snippet:

    Combo combo = new Combo( parent, SWT.BORDER );
    combo.setItems( new String[] { "foo", "bar", "combo item with very long text" } );
    combo.setLayoutData( new GridData( 120, SWT.DEFAULT ) );

Expected: the drop-down list is as wide as the largest item and completely contains the item text
Actual: the drop down list is as wide as the combo, the long item text is only partly visible

This seems to be regression.
May have been introduced by commit 962a4d3 (bug 352558).
Comment 1 Ivan Furnadjiev CLA 2014-02-17 09:36:59 EST
This regression has been introduced with commit b64dab812b18d31d43daa9dc325f6dcc2b1907a2.
Comment 2 Ivan Furnadjiev CLA 2014-04-08 05:19:46 EDT
The issue is fixed with the new Combo implementation based on DropDown - change https://git.eclipse.org/r/24466.