Community
Participate
Working Groups
Build Identifier: 3.6.2 I use a TableColumnLayout for a table. Initially, the table contains only a couple of rows, and no scrollbars are needed. This renders just fine. However, when more rows are added, at some point a vertical scrollbar is needed. When this scrollbar becomes visible, the layout of the table is not recomputed, and in addition to the vertical scrollbar, also a horizontal scrollbar appears. When the Composite containing the table is resized, the table layout is recomputed and the horizontal scrollbar disappears. The layout should be recomputed as soon as the vertical scrollbar is added. Reproducible: Always Steps to Reproduce: 1. create table 2. add layout 3. add rows so as not to need the vertical scrollbar 4. show table 5. fill table so as to need the vertical scrollbar
Created attachment 196570 [details] Snippet illustrating the problem Example that shows this for Table and TableColumnLayout. Initially there are only 10 rows in the table without scrollbar, then after 5 seconds, 200 rows are added and the scrollbars (horizontal and vertical) appear.
TableColumnLayout is not SWT, moving to UI.
Just use NO_SCROLL to work around one of your problems: Table table = new Table(comp, SWT.BORDER | SWT.V_SCROLL | SWT.NO_SCROLL); I've just tested and it works (Eclipse 3.7, Cent OS Linux 5.3).
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.