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 270972 - Editor tab scrolls cursor back into view
Summary: Editor tab scrolls cursor back into view
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: Dev
Hardware: PC Linux
: P3 normal (vote)
Assignee: Milutin Kristofic
Depends on:
Reported: 2017-06-27 00:43 UTC by twifty
Modified: 2017-07-12 12:04 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description twifty 2017-06-27 00:43:26 UTC
The editor has a nasty habit of auto scrolling the window so that the cursor is back in view. I have found two methods to reproduce the issue.

1: Code folding
Open a file containing enough lines to be able to scroll. Scroll the cursor out of view, scroll until a code foldable block is available. Toggle the folding by clicking the plus or minus on the left hand side.

90% of the time, the tab will auto scroll the document to bring the cursor back into view.

2: Switching tabs
When the code folding (above) works correctly, Ie. a block was opened/closed and the cursor is not in view; switch to another tab then switch back. Hey presto, the cursor is back in view.