Hi!
Since we updated to RAP 2.2 long texts with whitespaces cause a linebreak in the dropdown of the ComboViewer, when the ComboViewer has a fixed size.
In RAP 2.1 the text was cut off without any linebreak.
First Question: Bug or not?
Second Question: Any Ideas how to make the dropdown be as large as the largest text and not as large as the combobox?
Thanks for help.
Stefan
Example Code:
public class ComboViewerTest implements IEntryPoint {
@Override
public int createUI() {
Display display = new Display();
Shell shell = new Shell(display);
shell.setLayout(new GridLayout());
ComboViewer comboViewer = new ComboViewer(shell, SWT.DROP_DOWN);
comboViewer.setContentProvider(new ArrayContentProvider());
comboViewer.setInput(new String[] { "ObiWanKenObi", "Joda",
"DarthVader",
"Master Of Desaster And The Death Star LukeSkywalker" });
GridData gridData = new GridData();
gridData.widthHint = 200;
comboViewer.getCombo().setLayoutData(gridData);
shell.setSize(500, 400);
shell.open();
return 0;
}
}
[Updated on: Fri, 21 March 2014 04:33] by Moderator