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

Bug 412697

Summary: [Chrome] [FF] Line hit testing is incorrect after changing zoom
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: EditorAssignee: Silenio Quarti <Silenio_Quarti>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Silenio_Quarti
Version: 3.0   
Target Milestone: 4.0 M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2013-07-10 13:00:16 EDT
1. Load the Orion editor page at zoom = 100%
2. Load a file (at least a few hundred lines) into the editor, scroll to the bottom of the file.
3. Increase the browser zoom level to 125% (Ctrl++)
4. Click on some text to move the editing caret. The hit testing is wrong.

If you scroll the editor up and down, the hit testing will eventually correct itself.

Happens in 
 Chrome 29 (dev channel)
 Firefox 23 (beta channel)
 Didn't test IE or Safari
Comment 1 Silenio Quarti CLA 2013-07-29 17:37:59 EDT
Patch detects that the line metrics has changed when the window resizes. 

Fixed

http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=f6bd5838b76ab49014fd1316bbbd45ce12a5d65d