Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 367125 - [content assist] Code Assist Item has wrong layout. Not displaying properly when containing proposal with multiple lines
Summary: [content assist] Code Assist Item has wrong layout. Not displaying properly w...
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.7.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-19 14:57 EST by Vlado Pakan CLA
Modified: 2011-12-20 04:20 EST (History)
3 users (show)

See Also:


Attachments
Error Screenshot - Last item of Content Assist Window is nod displayed completely. (27.28 KB, image/png)
2011-12-19 14:59 EST, Vlado Pakan CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vlado Pakan CLA 2011-12-19 14:57:01 EST
Build Identifier: M20110909-1335

When Content Assist Window contains quite a long item displayed within 2 lines only first line of item text is visible completely. Second line is displayed just partially. See attached screenshot.

Reproducible: Always
Comment 1 Vlado Pakan CLA 2011-12-19 14:59:15 EST
Created attachment 208578 [details]
Error Screenshot - Last item of Content Assist Window is nod displayed completely.
Comment 2 Dani Megert CLA 2011-12-20 04:20:16 EST
The content assist infrastructure is built for single line entries i.e. the proposal's display string should not contain newline characters. This should be fixed by the plug-in that contributes the proposals.

Note that if colored labels get disabled, then the platform behavior is to simply remove/ignore the newlines which puts the string on one line but which might not be too readable as well. We could do the same for colored labels in org.eclipse.jface.internal.text.TableOwnerDrawSupport but this would slow down content assist for a corner case which is not even supported.