Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 384112 - Open Declaration to a new file causes scrollbar to snap to top of file
Summary: Open Declaration to a new file causes scrollbar to snap to top of file
Status: CLOSED DUPLICATE of bug 375576
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.2   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-03 04:16 EDT by Peter Wright CLA
Modified: 2012-07-03 04:56 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Wright CLA 2012-07-03 04:16:10 EDT
Build Identifier: 20120614-1722

Open Declaration changes the view to show the source but scrolling causes editor to snap to top of file.

Appearing in the Juno JEE package

Reproducible: Always

Steps to Reproduce:
1. Hover over a method reference to another class
2. Make sure the target class is not open in an editor tab
3. Command-click ("Open Declaration")
4. The editor will switch to the target class, showing the declaration
5. Notice that the scrollbar in this editor is not in the correct place (it's at the very top)
6. Use the scroll-wheel to move through the file
7. The editor snaps back to the top of the file
8. Using the arrow keys moves the view back to the correct part of the file (i.e. the insertion point is still correct)

To see the workaround, repeat 1-5 above, then:
6. Use the arrow keys to move the insertion point outside what you can currently see (so the editor has to render some new lines)
7. Notice the scrollbar moves to the correct point in the file
8. Using the scroll-wheel now correctly moves from the insertion point
Comment 1 Dani Megert CLA 2012-07-03 04:56:37 EDT

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