This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 270077 - Editor does not scroll to cursor after selecting item in Navigator and other "jump to code" places
Summary: Editor does not scroll to cursor after selecting item in Navigator and other...
Status: RESOLVED WONTFIX
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: Dev
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-15 15:37 UTC by ashpynov
Modified: 2017-03-16 06:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screen record to observe issue (6.83 MB, video/webm)
2017-03-15 15:37 UTC, ashpynov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ashpynov 2017-03-15 15:37:49 UTC
Created attachment 163852 [details]
screen record to observe issue

Current steps to reproduce:
1. Get some methods/functions in code more than single page. 
2. The current caret position have to be visible at the Editor window.
3. The source code have to be parced.
4. At the Navigator pane double click at the item outside of current Editor visible part.

Expected:
1. Focus changed to Editor
2. Caret moved to dbl clicked item 
3. Editor scroll position is changed to make carret visible.

Actual result:

1. Focus changed to Editor
2. Caret moved to the dbl-clicked item
3. BUT the editor kept current view position.

If I press any cursor key or start typing - the editor scrolls to make caret visible.

Same issue observe in many other "Go to source" places. E.g at "Navigate->Go to declaration" if source file is already opened - the tab activating, cursor set position in declaration but scroll position is kept.
Comment 1 Alexander Simon 2017-03-15 20:26:55 UTC
Please provide info about IDE.
This bug should be fixed in Netbeans 8.2 update 1.
Comment 2 ashpynov 2017-03-16 06:01:25 UTC
Product Version: NetBeans IDE Dev (Build nbms-and-javadoc-595-on-20160906)
Updates: NetBeans IDE is updated to version NetBeans 8.2 Patch 1
Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27
System: Windows 7 version 6.1 running on amd64; Cp1251; en_US (nb)
User directory: C:\Users\ashpynov\AppData\Roaming\NetBeans\8.2
Cache directory: C:\Users\ashpynov\AppData\Local\NetBeans\Cache\8.2
Comment 3 ashpynov 2017-03-16 06:34:21 UTC
After manual deinstalation of nbms-and-javadoc-595-on-20160906 nightly and instalation of Product Version: NetBeans IDE Dev (Build 201703150002) issue was gone. I suppose this report can be closed.


Is nightly auto updatable via Help -> Check for updates ?
Comment 4 Alexander Simon 2017-03-16 06:59:32 UTC
(In reply to ashpynov from comment #3)
> After manual deinstalation of nbms-and-javadoc-595-on-20160906 nightly and
> instalation of Product Version: NetBeans IDE Dev (Build 201703150002) issue
> was gone. I suppose this report can be closed.
> 
> 
> Is nightly auto updatable via Help -> Check for updates ?
In most cases no, but sometimes update from one nightly to another works.
The preferred way for nightly build is reinstall latest nightly build.

I doubt that updating nightly build to release + update 1 will work.