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 259118 - [regression] Navigation doesn't scroll to the correct line when there are any "collapsed-by-default" folding blocks in file
Summary: [regression] Navigation doesn't scroll to the correct line when there are any...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 8.2
Hardware: All All
: P1 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-03 22:40 UTC by Vladimir Voskresensky
Modified: 2016-10-09 17:19 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2016-05-03 22:40:05 UTC
This bug is the continuation of recently fixed https://netbeans.org/bugzilla/show_bug.cgi?id=258564

Prepare:
In Tools->Options->Editor->Folding, for All Languages turn on "Initial Comment" to be collapsed by default.
Then:
Create C++ Quote sample project
in project view under Source Files select, but not open "quote.cc" file
in Navigator dbl-click on "main()" => 
File is opened, cursor is placed at line 118 before main function, 
then file is auto-scrolled up and cursor remains at old screen position which is now line 146, 
but if press ARROW_RIGHT (or start typing) then you will observe cursor to be at line 118 and not as painted at line 146.

EXPECTED:
to be always at line 118 and never painted at line 146
Comment 1 Quality Engineering 2016-05-07 01:59:43 UTC
Integrated into 'main-silver', will be available in build *201605070002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/3df44457ba35
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #259118 - [regression] Navigation doesn't scroll to the correct line when there are any "collapsed-by-default" folding blocks in file.
Comment 2 AlexFalappa 2016-10-09 17:15:28 UTC
Just faced this behaviour on Java code with NetBeans 8.2 final.

Is this really fixed?

Should I open a new bug?
Comment 3 AlexFalappa 2016-10-09 17:19:13 UTC
Forgot to mention that I used Ctrl+B or Ctrl+click navigation and that the target source is moderately long (i.e. try it with Swing components like JTable)