Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Linebreak in ComboViewer-Dropdown with RAP 2.2
Linebreak in ComboViewer-Dropdown with RAP 2.2 [message #1274284] Fri, 21 March 2014 04:33 Go to next message
Eclipse UserFriend
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

Re: Linebreak in ComboViewer-Dropdown with RAP 2.2 [message #1274357 is a reply to message #1274284] Fri, 21 March 2014 06:57 Go to previous message
Eclipse UserFriend
Hi Stefan,
this is a known issue. See:
428326: [Combo][CCombo] Drop-down list does not adapt to item text size
https://bugs.eclipse.org/bugs/show_bug.cgi?id=428326
I hope that we will fix it for the next milestone (2.3M3).
Best,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:Restart workbench in a new VM process
Next Topic:Critical Error - HTTP Status 404 - blank.gif
Goto Forum:
  


Current Time: Sat Aug 30 20:24:32 EDT 2025

Powered by FUDForum. Page generated in 0.40992 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top