Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » SizeConfig doesd not invalidate cache when DPI converter is set
SizeConfig doesd not invalidate cache when DPI converter is set [message #1773754] Wed, 04 October 2017 07:37 Go to next message
Thorsten Schlathölter is currently offline Thorsten SchlathölterFriend
Messages: 312
Registered: February 2012
Location: Düsseldorf
Senior Member
Hi,
I think that a call to org.eclipse.nebula.widgets.nattable.layer.SizeConfig.setDpiConverter(IDpiConverter) should invalidate the internal aggregate size cache by setting:

isAggregatedSizeCacheValid = false;


We experience layout problems in displays with high resolution. We found out that the reason is that some aggregated sizes are already calculated during initialization of the DataLayer (namely the secondlast column and the last column).
Then upon initialization of the NatTable in internal setLayer the ConfigureScalingCommand is performed which sets a DPI converter in the SizeConfig of the DataLayer. The cached data of SizeConfig is now invalid because it was calculated without the dpi converter whereas all further calls to getAggregateSize will respect the upscaling due to the dpi converter.
Layoutproblems occur if due to this upscaling the positions of other columns extend the cached position of the secondLast column.

Should I raise a ticket on this?

Regards,
Thorsten


Re: SizeConfig doesd not invalidate cache when DPI converter is set [message #1773756 is a reply to message #1773754] Wed, 04 October 2017 08:25 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
Yes please create a ticket.
Re: SizeConfig doesd not invalidate cache when DPI converter is set [message #1773762 is a reply to message #1773756] Wed, 04 October 2017 10:46 Go to previous message
Thorsten Schlathölter is currently offline Thorsten SchlathölterFriend
Messages: 312
Registered: February 2012
Location: Düsseldorf
Senior Member
https://bugs.eclipse.org/bugs/show_bug.cgi?id=525551
Previous Topic:Add new row header
Next Topic:Same column having combo-box with two different list
Goto Forum:
  


Current Time: Thu Apr 18 04:56:49 GMT 2024

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

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

Back to the top