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 18860 - file "jumps" up sometimes
Summary: file "jumps" up sometimes
Status: RESOLVED DUPLICATE of bug 196236
Alias: None
Product: xml
Classification: Unclassified
Component: Document Model (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker with 2 votes (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-12-20 11:21 UTC by zohar
Modified: 2011-09-23 09:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Test sample. (1.14 KB, text/plain)
2002-01-02 14:37 UTC, Jan Lahoda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zohar 2001-12-20 11:21:41 UTC
sometimes, after opening a source file, I use the mouse wheel and scroll down. 
Suddenly the file "resets" and I'm being "thrown" to the top (as if the file 
was updated and reset or something).
Comment 1 Phil Sager 2002-01-02 08:40:45 UTC
This happens whether the mouse wheel is used or if I just use the 
scroll bar in the editor window. After scrolling up or down in the 
file the code will jump back to the cursor for some unknown reason. 

There was a similar bug before 3.2 came out.
Comment 2 Jan Lahoda 2002-01-02 14:36:39 UTC
Hi,
   I have one realy reproducible case (build 200201020331):
1. When some line, visibly longer than any previously shown (+ maybe
some other conditions, I am not sure) is shown, the editor is scrolled
to cursor.
2. The way of scrolling is by using arrows on scroll bar. The shortcut
has the same Ctrl-Down, Ctrl-Up does the same (I think they in fact
works via arrows on scrollbar). And, I think that mousewheel uses
these shortcuts.
I am attaching example file. There are two "lines longer than any
previous", one has character length maximal (of the file), second has
character length smaller, but it's visible length is higher.
Please, when you will be trying this, close the editor and open the
file. When you will once try it, you will need to close the editor (or
file), to reproduce the problem.

I have never seen this when scrolling via already showed parts of
file, please, can you confirm, that anybody saw the "jumping" when
scrolling via alread seen part of the code?
Comment 3 Jan Lahoda 2002-01-02 14:37:59 UTC
Created attachment 3949 [details]
Test sample.
Comment 4 Dennis Daniels 2002-01-02 18:12:42 UTC
this happens as well when viewing xml files and I'm not using a mouse 
wheel only click drag on scroll bar
Comment 5 Phil Sager 2002-01-02 20:18:53 UTC
Opened a new file with cursor at the 1st line. Scroll down slowly 
using the scroll wheel. As soon as a line that crosses my "Text Limit 
Line" comes into view the file jumps back to the cursor line (line1).

That being the longest line in the file I could then scroll up and 
down to my hearts content with no further problems on that file...
Comment 6 Miloslav Metelka 2002-01-04 14:34:01 UTC
Fixed in BaseTextUI and BaseCaret.
Comment 7 Quality Engineering 2003-06-30 18:01:23 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 8 Quality Engineering 2003-06-30 18:12:28 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 9 clover 2010-10-01 14:58:06 UTC
It happens in any XML file that requires scrolling with Code Folding turned on (which is default)

1) Type few letters and scroll either using mouse wheel or scrollbar, so that edited row isn't visible. 
2) Wait a second
3) Screens jumps back to edited row
Comment 10 Svata Dedic 2011-09-23 09:24:44 UTC

*** This bug has been marked as a duplicate of bug 196236 ***