Community
Participate
Working Groups
Build Identifier: 20100617-1415 Swapping "0 width" columns with adjacent columns fails. The non-"0 width" column gets stuck and is positioned at the last mouseup position. Reproducible: Always Steps to Reproduce: 1. Create three columns, the middle one with width 0 2. Set moveable property to true 3. Try to swap the first and third columns 4. The moved column gets stuck 5. A second move attempt positions the column properly
Created attachment 188313 [details] Creates a table with 5 columns, third one's width is 0
I have modified the > TableColumnLCA.moveColumn( TableColumn column, int newLeft ) method to cancel the preserved "left" value of the passed column, so that the updated left position is sent back to client also when it has not changed. It does not change because the width of the adjacent column is 0. More precisely the following lines in TableColumnLCA.moveColumn > } else { > table.setColumnOrder( columnOrder ); > } look like > } else { > table.setColumnOrder( columnOrder ); > IWidgetAdapter adapter = WidgetUtil.getAdapter( column ); > adapter.preserve( PROP_LEFT, null ); > }
Created attachment 188314 [details] Quickfix
Applied your patch to CVS HEAD as I think this is the only way to fix it. Thanks. JUnit test added.