| Summary: | Mini nav scrolls too much and folder nav cursor navigation does not always reveal item | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Silenio Quarti <Silenio_Quarti> |
| Component: | Client | Assignee: | Silenio Quarti <Silenio_Quarti> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 4.0 | ||
| Target Milestone: | 4.0 RC1 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Silenio Quarti
Fixed http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=2679186b362987caa4e1cf0c240a44b6f1697824 On Chrome, the file is not aligned on the top because the height of the items increases when the image is added to the item. At first, the item is top aligned and then it gets pushed down by the accumulated height difference of all the items before it. The fix here is to always add the default image to the links and then replace it when a different image is available. This way the height does not vary, since all images are the same size. The cursor navigation problem on the folder nav happened because the code that detects whether the item is visible (in explorerNavHandler.js) assumed that the explorer was flushed with the bottom of the page toolbar. This is the case for the mini-nav, but for the folder nav there is a margin at the top. And finally, in order to always scroll the minimum necessary to show the item, cursorOn() needs to detect whether the item is before the top edge or after the bottom edge. |