Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347182 - [JFace] TreeColumnLayout/TableColumnLayout does not re-layout when vertical scrollbar becomes visible
Summary: [JFace] TreeColumnLayout/TableColumnLayout does not re-layout when vertical s...
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6.2   Edit
Hardware: PC Linux
: P3 normal with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-25 11:49 EDT by Ruben Vandeginste CLA
Modified: 2020-05-27 03:04 EDT (History)
5 users (show)

See Also:


Attachments
Snippet illustrating the problem (1.97 KB, text/x-java)
2011-05-25 12:12 EDT, Ruben Vandeginste CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.