| Summary: | [Table] Cell editors aren't scrolled into view on a Table with fixed columns | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Rüdiger Herrmann <ruediger.herrmann> | ||||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | ivan | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | 1.5 M4 | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Rüdiger Herrmann
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.
|