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

Bug 385725

Summary: After resizing columns to 0 width they cannot be restored
Product: [Eclipse Project] Platform Reporter: neeraj negi <neeraj_igen>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: arunkumar.thondapu, curtis.windatt.public, ericwill, gheorghe, Silenio_Quarti
Version: 4.2Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:

Description neeraj negi CLA 2012-07-23 09:12:43 EDT
Build Identifier: Version: 3.7.2   Build id: M20120208-0800

for multiple columns in table viewer if we select first column for sorting and then if we start resizing few columns to size 0 towards left such that those few columns are not visible and then if we start restoring them one by one by resizing them toward right then one or two columns gets invisible.

This problem is easily and always reproducable in Unix environment but its working fine in windows environment.



Reproducible: Always

Steps to Reproduce:
1.its always reproducable in unix environment
2.
3.
Comment 1 Curtis Windatt CLA 2012-07-23 11:12:41 EDT
Reproduced on Ubuntu 11.04.

1) Open problems view
2) Shrink columns down to zero on left side
3) Try to restore the size by dragging right
Result:
The leftmost column (description) gets restored first, other columns cannot be selected.

On Windows 7 the columns are restored in the correct order.

Moving to Platform UI.
Comment 2 Curtis Windatt CLA 2012-07-25 13:20:32 EDT
Moving to SWT.  I tried debugging through the the viewer code and down into Tree/Table.  Probably due to my complete unfamiliarity with SWT I couldn't figure out where the mouse drag events handled the resize.  Any clicks on the actual column header are caught by listeners and notify the viewer code, but clicking on the separators does not.
Comment 3 Curtis Windatt CLA 2012-07-25 13:24:21 EDT
A similar bug for Win XP Bug 137772
Comment 4 Arun Thondapu CLA 2012-07-26 10:02:56 EDT
I'm able to resize to 0 and restore properly on Ubuntu 11.04 with Eclipse 4.2 (I20120608-1400).
Curtis, were you using 3.8 or 4.2? I haven't tested if the behavior is different on 3.8 yet.
Comment 5 Curtis Windatt CLA 2012-07-26 10:44:56 EDT
I'm currently running on I20120724-0800 (4.3).  The problem isn't as consistently reproducible as I originally thought.  It looks like you may have to click on different columns to set a sort to get it to work.

Here is one set of steps that works for me:
1) Close the problems view and reopen (resets the columns)
2) Click on resource column header
3) Shrink resource column to 0
4) Shrink path column to 0
5) Click on type column header
6) Drag between  description and location to resize resource column
7) Path column can not be restored
Comment 6 Eric Williams CLA 2018-06-15 15:05:55 EDT
I cannot reproduce the issue on GTK3.22 with 4.8 M7. Please reopen this ticket if the issue reoccurs.