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

Bug 457494

Summary: Command tooltips do not position properly in Chrome when the whole document is scrolled.
Product: [ECD] Orion Reporter: libing wang <libingw>
Component: ClientAssignee: libing wang <libingw>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 5.0   
Target Milestone: 8.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description libing wang CLA 2015-01-14 15:36:50 EST
I am writing a widget to re-use the git repository page.
When consuming the widget outside of Orion, in Chrome, I found that if the html document is scrolled(which is not reproducible in Orion as all the pages in Orion are inside the working target DIV), the command tooltips are far away from the commands.
Comment 1 libing wang CLA 2015-01-14 15:42:16 EST
It only happens in Chrome(version 40. Not sure if it happened in the previous version).
It turned out that the littlelib.bounds uses document.documentElement.scrollTop, which is always 0 in Chrome.
The littlelib.bounds API is used in the tooltip positioning API so it causes offsets.
https://code.google.com/p/chromium/issues/detail?id=157855
Comment 3 libing wang CLA 2015-01-14 15:54:13 EST
fixed with http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=4af8a499e15d9fd80b3ff436dc944dc289700c1b.

tested in FF, Chrome, IE and Safari.