Bug 486575

Summary: Editor completion proposals do not expand vertical space correctly
Product: [WebTools] JSDT Reporter: Christian Pontesegger <christian.pontesegger>
Component: GeneralAssignee: Project Inbox <jsdt.javascript-inbox>
Status: NEW --- QA Contact: Victor Rubezhny <vrubezhny>
Severity: trivial    
Priority: P3 CC: daniel_megert, thatnitind
Version: unspecifiedKeywords: needinfo
Target Milestone: ---   
Hardware: All   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
truncated completion
none
working completion none

Description Christian Pontesegger CLA 2016-01-26 09:54:13 EST
Created attachment 259391 [details]
truncated completion

I added completion proposals which seem to get truncated in some cases. By truncation I mean parts of the text get replaced by '...'

This happens for entries not providing an image when there exist other entries that do provide an image. If all entries provide an image, the full text of the proposals is visible.

See attached images for examples.
Comment 1 Christian Pontesegger CLA 2016-01-26 09:54:36 EST
Created attachment 259392 [details]
working completion
Comment 2 Christian Pontesegger CLA 2016-01-26 09:56:34 EST
when entering a 2nd character that fits both proposals the truncated rendering is replaced by the full text
Comment 3 Dani Megert CLA 2016-01-26 10:56:34 EST
The pictures are from a JSP editor. Can you reproduce this in the Java editor using http://download.eclipse.org/eclipse/downloads/drops4/I20160126-0800/ ?
Comment 4 Christian Pontesegger CLA 2016-01-26 17:49:00 EST
(In reply to Dani Megert from comment #3)
> The pictures are from a JSP editor.

Taken from the JSDT editor.

> Can you reproduce this in the Java editor

Would make some effort to move these proposals to another editor. Is the rendering of completion proposals really done differently for each editor?
Comment 5 Dani Megert CLA 2016-01-27 04:49:08 EST
(In reply to Christian Pontesegger from comment #4)
> (In reply to Dani Megert from comment #3)
> > The pictures are from a JSP editor.
> 
> Taken from the JSDT editor.
> 
> > Can you reproduce this in the Java editor
> 
> Would make some effort to move these proposals to another editor. Is the
> rendering of completion proposals really done differently for each editor?

I don't know what the JSDT editor is doing. They should be able to investigate this, or move back with a test case based on pure Eclipse SDK.
Comment 6 Christian Pontesegger CLA 2016-01-28 03:30:16 EST
Tested this today on linux, where I do not see this behavior. Currently only Windows 7 is affected