[Resolved] Empty vertical Scrollbar is shown. [message #1728550] |
Tue, 05 April 2016 11:35 |
Miguel Moreo 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
[Updated on: Tue, 05 April 2016 12:58] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03053 seconds