Community
Participate
Working Groups
On a table with fixed columns, the cell editor is not scrolled into view. To reproduce, use the attached project (table with two fixed columns and cell editor suport): * narrow the browser window so that only three columns are visible * select a cell in the first column and tab throught the cells -> notice that the cell editor on fourth column is not scrolled into view On a table that has only one fixed column, the problem is not reproducible.
Created attachment 207996 [details] Project to reproduce the bug
TestCase: public void testShowColumnWithFixedColumns() { Fixture.fakePhase( PhaseId.PROCESS_ACTION ); int numColumns = 4; int columnWidth = 100; Table table = new Table( shell, SWT.NONE ); table.setData( "fixedColumns", new Integer( 2 ) ); table.setSize( columnWidth * ( numColumns - 1 ), 100 ); for( int i = 0; i < numColumns; i++ ) { TableColumn column = new TableColumn( table, SWT.NONE ); column.setWidth( columnWidth ); } table.showColumn( table.getColumn( 3 ) ); ITableAdapter adapter = ( ITableAdapter )table.getAdapter( ITableAdapter.class ); assertEquals( 100, adapter.getLeftOffset() ); }
Created attachment 208021 [details] Proposed patch against Tree_Table_Merge branch with JUnit tests. This patch fixes the scrolling issue and the position of the cell editors by always align the shown column left in the view-port.
Applied patch from attachment 208021 [details] to tree_table_merge branch.
Also applied patch from attachment 208021 [details] to HEAD.