NatTable scroll bar appears all time when event list is cleared [message #1237992] |
Fri, 31 January 2014 05:32 |
Ali Malik Messages: 27 Registered: August 2013 |
Junior Member |
|
|
Hi,
I have a situation in which I use a selection listener from another table, which updates my NatTable with the selection changed.
Every time I update my nattable, I have to clear the event list. But once I clear the event list, there appears a vertical scroll bar, for no reason! And the scroll bar remains there even if there is only one row in it. It goes away only when the table is empty.
I tried disabling the scroll bar by using natTable.getVerticalBar().setVisible(false)
But no use. I also made sure that the composite in which he table resides, also have the NO_SCROLL option.
Am i missing something here? Or there is a workaround for it?
However, I don't want the scroll bar to be disabled permanently, I want the scroll bar where it should be visible.
I tried giving the SWT.NONE style to the NatTable constructor, and it didn't show the scroll bars, but it also didn't show it when there were more records to be shown and the scroll bar was necessary.
Thanks,
Tony
[Updated on: Fri, 31 January 2014 05:44] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03869 seconds