| Summary: | [Hover] Improve the placement and sizing of tooltips | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Curtis Windatt <curtis.windatt.public> |
| Component: | Client | Assignee: | Curtis Windatt <curtis.windatt.public> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | emoffatt |
| Version: | 8.0 | ||
| Target Milestone: | 9.0 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
| Bug Depends on: | 429250 | ||
| Bug Blocks: | 450152, 463009 | ||
|
Description
Curtis Windatt
I've committed code to organize how we position the tooltip and the 'hoverArea': https://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=57e7aeff515b444c4713c55e5d3f722c3012c56c Note that this commit has some non-functional code in hover.js which is an early attempt to clean up the tooltips for the quickfix commands. This will be addressed in a future commit (once silenio gets back). 5) Tooltips opening on very short annotations (unnecessary comma for example) are very difficult to mouse to. While the OKToHide function uses a focus area extending to the end of the tooltip, the OKToShow only uses the annotation text area. This means that mousing even one pixel over while moving downward can close the hover. I played around with always using the larger focus area, but then we don't change the content when a different annotation is found. http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=9e075a7508d13d41bdad29003bae0d875de5a2e0 This ended up being a full refactoring of tooltip.js. Now the order in which we perform the operations is very clear and we don't have state information being stored in multiple places. There are TODOs in tooltip.js for further improvements we could make, but I have fixed all regressions I found. |