Community
Participate
Working Groups
Build ID: I20060512-1600 Steps To Reproduce: 1. Run CompositeTableSnippet5.java 2. move the first column to the second column 3. try to resize the columns More information: it looks like columnOrder[] was not applied in a couple of places: 1. ResizableGridRowLayout.java line 166: Control resizedColumn = children[savedResizedColNum]; should probably be: Control resizedColumn = (Control) getColumnAt(row, savedResizedColNum); line 174: Control columnToTheRightOfResizedColumn = children[savedResizedColNum + 1]; should probably be: Control columnToTheRightOfResizedColumn = (Control) getColumnAt(row, savedResizedColNum+1); 2. HeaderLayout.java line 272: int columnWidthChange = lastWidths[resizedColumnPosition] - resizedColumnWidth; should probably be: int columnWidthChange = lastWidths[columnOrder[resizedColumnPosition]] - resizedColumnWidth; line 281: int columnToTheRightOfResizedColumnWidth = lastWidths[resizedColumnPosition+1] + columnWidthChange; should probably be: int columnToTheRightOfResizedColumnWidth = lastWidths[columnOrder[resizedColumnPosition+1]] + columnWidthChange;
Created attachment 58358 [details] Potential fix for resizing problem uploaded HeaderLayout.java and ResizableGridRowLayout.java
This fixes the row resizing problem, but the row's fields aren't ordered correctly. I've applied the patch as it stands and should get some cycles in the next few weeks to resolve the remaining issues.
Bugs == P1
Since I've applied this patch, I'm closing.