Skip to main content



      Home
Home » Eclipse Projects » NatTable » [Resolved] Empty vertical Scrollbar is shown.
[Resolved] Empty vertical Scrollbar is shown. [message #1728550] Tue, 05 April 2016 07:35 Go to next message
Eclipse UserFriend
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 08:58] by Moderator

Re: Empty vertical Scrollbar is shown. [message #1728551 is a reply to message #1728550] Tue, 05 April 2016 07:56 Go to previous messageGo to next message
Eclipse UserFriend
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 08:06 Go to previous messageGo to next message
Eclipse UserFriend
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 08:52 Go to previous message
Eclipse UserFriend
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: Wed Jun 18 02:56:01 EDT 2025

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

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

Back to the top