How to control a TableViewer's size? [message #514868] |
Tue, 16 February 2010 18:18 |
Eclipse User |
|
|
|
I have a TableViewer with SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI. This TableViewer is in a Composite with a TableColumnLayout, that itself is in a composite with an SWT.HORIZONTAL FillLayout. When the table is first drawn (and it contains more items than fit on the screen) the table gets a vertical scrollbar. However, if the items are added later (viewer.setInput(...)) the table expands to show all items (and then some...) and the composite gets a scrollbar. How do I ensure that it's always the table and not a parent that gets the scrollbar?
|
|
|
Powered by
FUDForum. Page generated in 0.05174 seconds