Summary: | [ViewForm] ViewForm makes Combo too wide | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Markus Keller <markus.kell.r> |
Component: | SWT | Assignee: | Duong Nguyen <duongn> |
Status: | NEW --- | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | steve_northover |
Version: | 3.2 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Markus Keller
2006-01-18 10:51:12 EST
A workaround is to wrap the Combo in a Composite like this: Composite comboComposite= new Composite(form, SWT.NONE); GridLayout gl= new GridLayout(1, false); gl.marginWidth= gl.marginHeight= 0; comboComposite.setLayout(gl); final Combo nestedCombo= new Combo(comboComposite, SWT.DROP_DOWN | SWT.READ_ONLY); nestedCombo.setItems(new String[] { "Item 1", "Item 2" }); nestedCombo.select(0); nestedCombo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false)); form.setTopLeft(comboComposite); This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. |