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 18288 - Scrollbar moved incorrectly in the TreeView
Summary: Scrollbar moved incorrectly in the TreeView
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 3.x
Hardware: Sun SunOS
: P2 blocker (vote)
Assignee: jrojcek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-12-03 13:40 UTC by Jan Zajicek
Modified: 2008-12-22 17:39 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dumps showing bug cause. (2.03 KB, text/plain)
2001-12-03 15:58 UTC, jrojcek
Details
Patch. (1.37 KB, patch)
2001-12-03 16:02 UTC, jrojcek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Zajicek 2001-12-03 13:40:21 UTC
build#200111300330 (release33)
jdk1.4.0-rc-b88, jdk1.3.1_01


Expand sampledir and select node examples.
Mount i.e. openide under javacvs.
Now expand nodes i.e. to the loaders.
You will encounter that when expanding loders node the scrollbar will be moved
up to show examples selected node.


This was originaly reported in bugtraq #4533037. The description follows (it is
little bit different but imo root of the problem is the same):

Tested Env : Build011116, WinNT, JDK1.3.1

There is a jpg attachment, and the following explanation refer to the
contents in the picture.

Steps to see the bug :
  
   * Mount huge number of files so that you will see the vertical scrollbar
     in the explorer window.
   * Expand the node J:\petstoreTest\jps1.1.2\src\components\src
   * select the branch node "blueprints" and observe the
     position of the vertical scrollbar of the FileSystems explorer.
   * Now select the node : J:\petstoreTest\jps1.1.2\src\components\src

You will see that the vertical scrollbar moves up and the node
J:\petstoreTest\jps1.1.2\src\components\src is out of your view.

This happens all the time and is very annoying.
Comment 1 Jan Zajicek 2001-12-03 13:45:21 UTC
Marking as P2. The original isse was P2 and it is very visible and
anoying.
Comment 2 jrojcek 2001-12-03 15:53:55 UTC
I am able to reproduce it. After selecting Filesystems root node and
expanding some mounted filesystems node with many children the tree
jumps verticaly up to show children of expanded mounted filsystem and
then back to show the selection (Filesystems node). 

See first attachment of two thread dumps from two
ExplorerTree.scrollRectToVisible() consecutive calls. First call is
fine, the second one is bad.

Second attachment is a patch.
Comment 3 jrojcek 2001-12-03 15:58:02 UTC
Created attachment 3677 [details]
Thread dumps showing bug cause.
Comment 4 jrojcek 2001-12-03 16:02:38 UTC
Created attachment 3678 [details]
Patch.
Comment 5 jrojcek 2001-12-04 09:15:52 UTC
Fixed in [release33]. Marked as candidate for 3.3.0
Comment 6 Jan Zajicek 2001-12-04 10:51:27 UTC
verified in build #200112040330 (release33)
Comment 7 jrojcek 2001-12-04 14:24:08 UTC
Commited to release330.
Comment 8 Quality Engineering 2003-07-01 16:28:06 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.