Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » [Resolved] Empty vertical Scrollbar is shown.
[Resolved] Empty vertical Scrollbar is shown. [message #1728550] Tue, 05 April 2016 11:35 Go to next message
Miguel Moreo is currently offline Miguel MoreoFriend
Messages: 8
Registered: March 2013
Junior Member
Hello all,

I have the following problem using Nattable on its latest version (1.3.0):

I am trying to make the table to fill all the available space in the Composite. It works well if the table is empty or if the table contains a lot of elements (it shows the vertical scroll bar as expected). But if the table contains only several elements it shows an empty column (the size of the vertical Scroll bar). Only when I resize manually the table, the columns adjust and this empty column disappears.

My NatTable uses a GridLayout layout:
natTable = new NatTable(gridLayoutPanel, gridLayer, false);
GridDataFactory.fillDefaults().grab(true, true).applyTo(natTable);

I am using PercentageSizing:
//make the columns fill all the available space
bodyDataLayer.setColumnPercentageSizing(true);

I have tried to manually call:

getViewPortLayer().recalculateScrollBars();
getViewPortLayer().invalidateVerticalStructure();

with no success. Or even things like

natTable.doCommand(new ClientAreaResizeCommand(natTable));
natTable.redraw();

Any suggestions?

Thanks in advance Very Happy

[Updated on: Tue, 05 April 2016 12:58]

Report message to a moderator

Re: Empty vertical Scrollbar is shown. [message #1728551 is a reply to message #1728550] Tue, 05 April 2016 11:56 Go to previous messageGo to next message
Miguel Moreo is currently offline Miguel MoreoFriend
Messages: 8
Registered: March 2013
Junior Member
I am able to reproduce the problem in the RowSelectionExample():

Adding the line:
bodyDataLayer.setColumnPercentageSizing(true);

and running the example this way:
StandaloneNatExampleRunner.run(600, 800, new _5052_RowSelectionExample());

The empty Vertical Scroll Bar is shown.


Re: Empty vertical Scrollbar is shown. [message #1728553 is a reply to message #1728551] Tue, 05 April 2016 12:06 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
I can not reproduce this with the current development state. IIRC there was an issue in 1.3.0 that was fixed already. Try to use the latest 1.4.0 SNAPSHOT build and check if the problem is solved there.
Re: Empty vertical Scrollbar is shown. [message #1728558 is a reply to message #1728553] Tue, 05 April 2016 12:52 Go to previous message
Miguel Moreo is currently offline Miguel MoreoFriend
Messages: 8
Registered: March 2013
Junior Member
Hello Dirk,

Thanks for your fast reply.

I have tried with the latest 1.4.0 SNAPSHOT and the error is gone. Thanks a lot!
Previous Topic:Sorting a tree table
Next Topic:How to find filter applied columns
Goto Forum:
  


Current Time: Fri Apr 26 07:02:51 GMT 2024

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

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

Back to the top