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 269151 - Navigate to declaration/definition does not adjust viewport
Summary: Navigate to declaration/definition does not adjust viewport
Status: RESOLVED DUPLICATE of bug 268785
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: Dev
Hardware: PC Linux
: P1 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords: REGRESSION
Depends on: 268785
Blocks:
  Show dependency tree
 
Reported: 2016-11-29 01:46 UTC by tbrunhoff
Modified: 2016-12-05 16:03 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 tbrunhoff 2016-11-29 01:46:38 UTC
This might not be specific to CND.

Up until a few months ago navigating to declaration/definition would adjust the edit viewport so that you could easily see the declaration. Then a few months back it changed so that it would still adjust the viewport, but the declaration might be one line above the viewport or one line below. It was irritating, but close enough.  This was as recent as build 20161111.

Now with the build below, sometimes it does not adjust the viewport at all.

In my environment, I can repeat as follows:
- set up the ide with at least two edit panes, A and B.
- find a member function F implementation in pane A that is referenced by code in a different file that is viewable in pane B
- place the cursor position in pane A so that the member function is out of view in pane A (if you only scroll, but don't move the cursor, the error does not occur).
- go back to pane B to the function reference and right click and select 'navigate to declaration/definition'.

The current pane will shift from B to A and the current cursor position will move to the definition of the function, but the viewport will not be adjusted. If you then hit up, down, left or right, the viewport will snap to the right position.

Product Version: NetBeans IDE Dev (Build 201611240001)
Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b14
System: Linux version 4.1.13-100.fc21.x86_64 running on amd64; UTF-8; en_US (nb)
User directory: /home/toddb/.netbeans/dev
Cache directory: /home/toddb/.cache/netbeans/dev
Comment 1 Vladimir Voskresensky 2016-11-29 13:07:03 UTC
This is the editor's bug. Could you evaluate, please.
Comment 2 Miloslav Metelka 2016-12-05 15:16:05 UTC
The problem should be eliminated by the refined fix http://hg.netbeans.org/jet-main/rev/5ece8b9b81cb of issue #268785. Thus marking this issue as dup.

*** This bug has been marked as a duplicate of bug 268785 ***
Comment 3 Vladimir Voskresensky 2016-12-05 16:03:24 UTC
removing candidate as it was marked as duplicate