Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 388768 - scrollbar jumps to top on git history
Summary: scrollbar jumps to top on git history
Status: CLOSED DUPLICATE of bug 389432
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-04 12:28 EDT by Martin Fleurke CLA
Modified: 2012-12-10 09:46 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Fleurke CLA 2012-09-04 12:28:25 EDT
In different panes, the scrollbar jumps back to the top, causing scrolling to work incorreclty.


Example 1:
in Java Editor, ctrl-click on some object that is defined in another file (preferably a large one). The other file opens, the cursor is moved to the correct line, then (mainly on larger files, with cursor position not in the top part) the scrollbar is set to position 0 again when it shouldn't. Now if you try to scroll up with the mouse scollwheel, it fails. If you scroll down, you scroll down from the top of the page instead of from the current line number. 
(this sucks bad time, because you can't quickly scan the context).
Only when you start using arrow keys, you jump back to the correct location, and the scrollbar is ok again.

Example 2:
in the git history pane, type something in the find-bar, so you find something.
The commit-list does not scroll to the (first) line you found. If you press next or previous, some scrolling is done, but definitely not the right kind, because the matching item is never visible. Often the scrolling is not even close to the correct point. Neither is it always to the top.
(this suck bad time, becaause you can't find what you're looking for.)

I'm not sure if they are related examples, buth both involve scrolling and jumping to.

It worked in Eclipse 3.7. In 4.2.0 it fails.
Comment 1 Martin Fleurke CLA 2012-09-04 12:29:59 EDT
PS: using latest Ubuntu, and example 1 is not limited to Java editor. It also happens with other editors.
Comment 2 Martin Fleurke CLA 2012-10-12 10:38:50 EDT
The issue is on Unity. If I switch to Gnome classic, the issue is gone, and the line is in the middle of the page, scrolling works.
Except: the git history pane. That one still hass scrolling issues :(
Comment 3 Martin Fleurke CLA 2012-10-26 05:08:49 EDT
Hmm, can't reproduce item 1 anymore. So maybe it is fixed in 4.2.1 (or un ubuntu).

Item 2 still exists, and it also exists in 3.8, not in 3.7.
Comment 4 Martin Fleurke CLA 2012-10-26 05:15:41 EDT
maybe realated to bug 370079 ?
Comment 5 Stephan Herrmann CLA 2012-10-26 10:51:58 EDT
The EGit example (2) sounds like bug 385661, right?
Comment 6 Martin Fleurke CLA 2012-10-26 10:55:34 EDT
yes.
Comment 7 Paul Webster CLA 2012-12-10 09:46:16 EST

*** This bug has been marked as a duplicate of bug 389432 ***