Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 468555

Summary: [Hover] Update tooltip size and placement on update calls (resize tooltip when content assist is resized)
Product: [ECD] Orion Reporter: Curtis Windatt <curtis.windatt.public>
Component: ClientAssignee: Curtis Windatt <curtis.windatt.public>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 8.0   
Target Milestone: 9.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on:    
Bug Blocks: 472275    

Description Curtis Windatt CLA 2015-05-27 17:44:41 EDT
1) Open content assist in JS where you have tooltips for everything
2) Resize the content assist window
3) Key to the next proposal
Result:
The tooltip is still the original size and placement, even if it covers the content assist window.

When you call tooltip.update(), we completely ignore any position information provided and instead update the contents of the existing window.

The simplest change to make the content assist case work is to check if the info object has a set location and if so, compare that location to the previous tooltip location.
Comment 1 Curtis Windatt CLA 2015-05-28 11:56:53 EDT
http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=7aad1a18c2c623a4f20a37764404ed59c312b473
Fixed in master

The fix isn't perfect for content assist as we only resize when the user switches proposals.  This is because there is no event from the browser for a css3 resize.