Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 347182

Summary: [JFace] TreeColumnLayout/TableColumnLayout does not re-layout when vertical scrollbar becomes visible
Product: [Eclipse Project] Platform Reporter: Ruben Vandeginste <ruben.vandeginste>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: eclipse.felipe, gouessej, jan.krakora.cz, nlambert, prakash
Version: 3.6.2   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: stalebug
Attachments:
Description Flags
Snippet illustrating the problem none

Description Ruben Vandeginste CLA 2011-05-25 11:49:06 EDT
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
Comment 1 Ruben Vandeginste CLA 2011-05-25 12:12:02 EDT
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.
Comment 2 Felipe Heidrich CLA 2011-05-25 12:17:19 EDT
TableColumnLayout is not SWT, moving to UI.
Comment 3 Julien Gouesse CLA 2012-07-18 06:57:40 EDT
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).
Comment 4 Eclipse Genie CLA 2020-05-27 03:04:11 EDT
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.