bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug swing/26003] JTree expanding of nodes


From: audriusa at bluewin dot ch
Subject: [Bug swing/26003] JTree expanding of nodes
Date: 28 Jan 2006 21:12:13 -0000


------- Comment #1 from audriusa at bluewin dot ch  2006-01-28 21:12 -------
Created an attachment (id=10749)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10749&action=view)
Proposed fix in javax/swing/ViewportLayout.java

There was a strange (but documented) rule in the
javax/swing/ViewportLayout.java: If the port is larger than the view's minimum
size, put the port at view position (0,0). For the view port in the scroll pane
this near always means scrolling to the top left corner each time the component
is revalidated (by adding/removing tree nodes or just by resizing the window).

Normally, the views minimum size is rather small, the port is larger, so this
scrolling operation occurs near always. The problem can be fixed by rewriting
the layoutContainer, as described in the patch.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26003





reply via email to

[Prev in Thread] Current Thread [Next in Thread]