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

Bug 581559

Summary: Reorder collapsed column groups in frozen state is broken
Product: [Technology] NatTable Reporter: Dirk Fauth <dirk.fauth>
Component: CoreAssignee: Dirk Fauth <dirk.fauth>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0.5   
Target Milestone: 2.1.0   
Hardware: PC   
OS: Windows 10   
See Also: https://git.eclipse.org/r/c/nattable/org.eclipse.nebula.widgets.nattable/+/200039
https://git.eclipse.org/c/nattable/org.eclipse.nebula.widgets.nattable.git/commit/?id=0635f9e15de83079977a1f8c339801a8dc75b382
Whiteboard:

Description Dirk Fauth CLA 2023-02-21 05:11:54 EST
If you have a setup with performance column groups and freeze support, you can collapse a group in frozen state. But if you try to reorder the group the rendering breaks. This gets up to the point that some columns are not visible anymore or columns are doubled.

The reason is in AbstractColumnHideShowLayer. When transforming the column indexes to positions, the negative values for hidden columns are not respected. This is probably due to the fact that typically you can only reorder visible columns. But in case of the ColumnGroupHeaderLayer and collapsed groups, it is also possible to reorder hidden columns.
Comment 1 Eclipse Genie CLA 2023-02-21 05:12:48 EST
New Gerrit change created: https://git.eclipse.org/r/c/nattable/org.eclipse.nebula.widgets.nattable/+/200039
Comment 3 Dirk Fauth CLA 2023-03-31 03:45:07 EDT
Fixed with 2.1.0