Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » SpanningDataLayer paint problems when scrolling fast
SpanningDataLayer paint problems when scrolling fast [message #1697692] Sat, 06 June 2015 07:59 Go to next message
Thorsten Schlathölter is currently offline Thorsten SchlathölterFriend
Messages: 312
Registered: February 2012
Location: Düsseldorf
Senior Member
Hi,
when using the SpanningDataLayer in a large table, paint artifacts occur when initially scrolling down the table (fast). It looks like the lines which should be invisible (because of spanning) are painted. Of course if scrolling stops everything is rendered correctly. Once the table has been scrolled down completely and every part was rendered once, everything is fine and fast scrolling works without those ghostlines. Is there some command that I could use in order to precalculate the necessary information to do a proper rendering from the very beginning?

Thanks in advance
Thorsten
Re: SpanningDataLayer paint problems when scrolling fast [message #1697693 is a reply to message #1697692] Sat, 06 June 2015 09:56 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
Is this because of spanning or are you using a TextPainter with dynamic size calculation? Sounds more like the later.
Re: SpanningDataLayer paint problems when scrolling fast [message #1697751 is a reply to message #1697693] Mon, 08 June 2015 07:40 Go to previous messageGo to next message
Thorsten Schlathölter is currently offline Thorsten SchlathölterFriend
Messages: 312
Registered: February 2012
Location: Düsseldorf
Senior Member
Yes that is true. I am using a TextPainter with dynamic size calculation. Is there a command that pre-calculates the correct row heights to overcome this problem. I am using the InitializeAutoResizeRowsCommand and thought that this would do the trick. Therefore I thought it was in issue with the spanning.
Re: SpanningDataLayer paint problems when scrolling fast [message #1697752 is a reply to message #1697693] Mon, 08 June 2015 07:41 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
If it is related to dynamic row height calculation using the TextPainter, the workaround is to perform autoresizing when loading is finished. A possible solution is described here: https://www.eclipse.org/nattable/documentation.php?page=faq

Note that this shouldn't be used with large tables, since it violates the virtual nature of NatTable and can cause serious delay in rendering at the beginning. For smaller tables this might be a suitable workaround.
Previous Topic:Nattable menu invocation when table is empty
Next Topic:Alternating Row Configuration
Goto Forum:
  


Current Time: Sat Apr 27 02:06:14 GMT 2024

Powered by FUDForum. Page generated in 0.03479 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top