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 102288 - [60cat] Code folding: After expand/collaps editor jumps to caret
Summary: [60cat] Code folding: After expand/collaps editor jumps to caret
Alias: None
Product: editor
Classification: Unclassified
Component: Code folding (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker with 8 votes (vote)
Assignee: Miloslav Metelka
: 113759 114628 116415 118843 119831 121222 (view as bug list)
Depends on:
Reported: 2007-04-24 10:04 UTC by arittner
Modified: 2008-02-11 14:59 UTC (History)
3 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 arittner 2007-04-24 10:04:50 UTC
NetBeans IDE Dev (Build 200704171800)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Windows XP version 5.1 running on x86
de_DE (nb); Cp1252

1. move the caret to the bottom of a java file
2. scroll to top (e.g. to the import statement)
3. expand/collaps a block.

-> the editor-view moves down to the caret. 

best regards,
Comment 1 Vitezslav Stejskal 2007-04-25 23:45:12 UTC
Reproducible in a trunk build.
Comment 2 arittner 2007-06-29 12:55:49 UTC
The bug still exists in NetBeans IDE 6.0 M10 (build 200706281431) - so "code folding" is impossible to use and brings
NetBeans back to the last century... :-(
Comment 3 Vitezslav Stejskal 2007-08-25 17:49:58 UTC
*** Issue 113759 has been marked as a duplicate of this issue. ***
Comment 4 Vitezslav Stejskal 2007-09-06 11:56:47 UTC
*** Issue 114628 has been marked as a duplicate of this issue. ***
Comment 5 Vitezslav Stejskal 2007-09-24 13:34:31 UTC
*** Issue 116415 has been marked as a duplicate of this issue. ***
Comment 6 Vitezslav Stejskal 2007-10-15 15:51:56 UTC
*** Issue 118843 has been marked as a duplicate of this issue. ***
Comment 7 Jiri Prox 2007-10-24 09:22:28 UTC
This is quite annoying, it would be nice to have it fixed in 6.0
Comment 8 Jiri Prox 2007-10-24 09:24:50 UTC
*** Issue 119831 has been marked as a duplicate of this issue. ***
Comment 9 _ hair 2007-10-24 09:28:59 UTC
This should be P2.
It drives most developers crazy and is such a little thing that could give netbeans a bad name.

Show me a developer that expanded the code who wasn't intending to read it next?
Comment 10 ulfzibis 2007-10-24 11:11:48 UTC
The annoying behaviour also occurs on collapsing the fold.
Comment 11 Lukas Hasik 2007-10-26 13:41:42 UTC
I hate this issue. 
I'm looking at a source code, scrolling there and back then I expand a fold and I'm lost. 
I can see lot of duplicates of this issue + 11 votes. 
I understand that it doesn't break anything but the editor's usability. According to page P2 bug can be "Critical usability problem + Affects
another developer's progress". -> P2
Comment 12 arittner 2007-10-26 17:06:32 UTC
I agree with lhasik. This is a P2 bug. I've completely disabled the code folding. This bug is terrible. 
Comment 13 Vitezslav Stejskal 2007-10-29 16:05:02 UTC
Should behave better now.

Checking in;
/cvs/editor/libsrc/org/netbeans/editor/,v  <--
new revision: 1.143; previous revision: 1.142
Comment 14 Jiri Prox 2007-11-06 09:41:27 UTC
*** Issue 121222 has been marked as a duplicate of this issue. ***
Comment 15 ulfzibis 2007-11-24 18:49:23 UTC
If I do open + close (by mouse click on the [-]) of a fold too fast, the annoying behaviour is still existent.
Comment 16 Jiri Prox 2007-11-26 11:15:15 UTC
Yes I can reproduce it as well
Comment 17 Jan Becicka 2008-02-01 16:22:22 UTC
Vito, can you take at it?
Comment 18 Vitezslav Stejskal 2008-02-05 15:58:47 UTC
Reproducible in a dev build.
Comment 19 Miloslav Metelka 2008-02-08 17:33:34 UTC
I've reproduced too (it works correctly but fails when clicking fast on +/- marks) and it seems to me like if the gutter
would be sensitive do double-click. I'll check that.
Comment 20 Miloslav Metelka 2008-02-11 14:59:59 UTC
Fixed: 2bad4bcb114e