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

Bug 335579

Summary: [editor] Error marker in bird's eye view doesn't match scrollbar
Product: [ECD] Orion Reporter: John Arthorne <john.arthorne>
Component: EditorAssignee: Silenio Quarti <Silenio_Quarti>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: eclipse.felipe, mamacdon, Silenio_Quarti
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Screen shot none

Description John Arthorne CLA 2011-01-27 10:39:39 EST
Build: N201101270200
Firefox 3.6.13

- Open editor.js in the editor
- There is an error marker on line 3287. The position of the marker in the bird's eye view to the right of the scrollbar doesn't match the scrollbar position.
Comment 1 John Arthorne CLA 2011-01-27 10:40:24 EST
Created attachment 187739 [details]
Screen shot
Comment 2 John Arthorne CLA 2011-01-27 11:10:34 EST
On Chrome 8.0 the marker is almost in the correct postion, but doesn't line up perfectly either (it's within a page of being correct, whereas FF is off by about 400 lines.
Comment 3 Felipe Heidrich CLA 2011-01-27 11:29:24 EST
The cause of this problem is that we don't know the client area size of the scrollbars (the size excluding the height of the arrow buttons). The current code assumes the height of a buttons is 17px, and that the scrollbar have one button at each end. Both assumptions can be wrong.
Comment 4 Felipe Heidrich CLA 2011-12-05 16:18:56 EST
*** Bug 364398 has been marked as a duplicate of this bug. ***
Comment 5 Silenio Quarti CLA 2012-11-08 16:26:59 EST
I cannot reproduce the problem in FF.

I was able to calculate/approximate the scrollbar arrow buttons height/width by assuming it is the width/height of the scrollbar. Meaning, the width of the vertical scroll bar is the height of the arrow button.  This code went in a while back (Orion 1.0).

Closing this. Please reopen if you still see a problem.