RegisterSearchFAQ UsergroupsLog in
table.scrollRectToVisible didn't work properly

 
Reply to topic    Citra Technologies Forum Index » Report a Bug View previous topic
View next topic

table.scrollRectToVisible didn't work properly
Author Message
cone



Joined: 29 May 2007
Posts: 353

Post table.scrollRectToVisible didn't work properly Reply with quote
Hi,

under some circumstances table.scrollRectToVisible didn't work.

There is a problem in AdvancedJScrollpane#scrollCentralRectToVisible.

Steps to reproduce
* treeTable (collapsed to one node)
* make the viewPort very small (only see one row (with scrollbar) of the table)
* fix the first left column (it is important that something is locked!)
* programmatically expand the tree
* table.scrollRectToVisible(cellRect); // scroll to some other row than the first
it didn't scroll !

A possible fix is to simple validate the table like:
Code:

private void scrollCentralRectToVisible() {
  if (!isValid()) {
    validate();
  }


cheers, michael
Thu Oct 06, 2016 2:02 am View user's profile Send private message
support



Joined: 21 Feb 2006
Posts: 1463

Post Reply with quote
Thank you for the suggestion, I will look into it!
Tue Nov 08, 2016 10:58 am View user's profile Send private message
support



Joined: 21 Feb 2006
Posts: 1463

Post Reply with quote
Hi,

Yes, the scrollpane needed to be validated before scrolling, it is now fixed.

Thanks!
Fri Nov 18, 2016 7:21 am View user's profile Send private message
Display posts from previous:    

Reply to topic    Citra Technologies Forum Index » Report a Bug All times are GMT - 5 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group