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

Bug 394162

Summary: [TableColumn] Unlike SWT: TableColumn#pack() does not use header width if header not visible
Product: [RT] RAP Reporter: Fabian Henniges <eclipse>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 M4   
Hardware: All   
OS: All   
Whiteboard:

Description Fabian Henniges CLA 2012-11-13 05:00:50 EST
SWT TableColumn uses header width for calculation of overall width. 
Independent of visible flag. 

RWT TableColumn checks if header is visible before taking it into account. 

The RWT approach seems to be the appropriate approach but differs from the "leading" SWT counterpart. 

To be compatible with SWT behaviour the RWT check in TableColumn#getPreferredWidth() should be removed.
Comment 1 Ivan Furnadjiev CLA 2012-12-07 04:47:27 EST
Fixed in master with commit 7260a98cbe0ea97b22c149a11f506ca67848cb2a. The same issue is fixed in TreeColumn as well.