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 267326 - Random position of caret when navigating to a method
Summary: Random position of caret when navigating to a method
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 8.2
Hardware: All All
: P2 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords: REGRESSION, USABILITY
Depends on:
Blocks:
 
Reported: 2016-07-27 05:09 UTC by Tomas Mysik
Modified: 2016-08-01 05:25 UTC (History)
1 user (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 Tomas Mysik 2016-07-27 05:09:25 UTC
Steps:
- open some large Java class
- open Navigator window
- double click different methods of this class in the Navigator window
- the caret is always on different line visible in the editor tab

-> this is really annoying as one needs to find caret to be able to find the method. Sometimes, the caret is on the very first visible line, sometimes on the very last, sometimes somewhere in the middle of the screen.

This worked fine in 8.1 therefore P2. Also, this issue influences usability a lot (at least this is my case). Perhaps multicaret related?

Thanks.

Product Version: NetBeans IDE Dev (Build 201607190002)
Java: 1.8.0_101; Java HotSpot(TM) 64-Bit Server VM 25.101-b13
Runtime: Java(TM) SE Runtime Environment 1.8.0_101-b13
System: Linux version 4.4.0-31-generic running on amd64; UTF-8; cs_CZ (nb)
Comment 1 Ralph Ruijs 2016-07-28 12:55:25 UTC
changeset:   ee8b569f5b90
user:        Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
date:        Thu Jul 28 14:53:09 2016 +0200
summary:     #267326 - scroll to vertical middle
Comment 2 Tomas Mysik 2016-07-28 13:16:54 UTC
Thanks a lot for fixing it! Will verify it as soon as it is available in a dev build.
Comment 3 Quality Engineering 2016-07-29 19:02:45 UTC
Integrated into 'main-silver', will be available in build *201607291723* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/ee8b569f5b90
User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Log: #267326 - scroll to vertical middle
Comment 4 Tomas Mysik 2016-08-01 05:25:01 UTC
Verified, thanks!

Product Version: NetBeans IDE Dev (Build web-main-3674-on-20160801)
Java: 1.8.0_101; Java HotSpot(TM) 64-Bit Server VM 25.101-b13
Runtime: Java(TM) SE Runtime Environment 1.8.0_101-b13
System: Linux version 4.2.0-42-generic running on amd64; UTF-8; cs_CZ (nb)