Bug 493226 - Table Scroll behaviour in narrow tables with a FocusCellManager
Summary: Table Scroll behaviour in narrow tables with a FocusCellManager
Status: NEW
Alias: None
Product: RAP
Classification: RT
Component: JFace (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-09 07:31 EDT by Franz Flintzer CLA
Modified: 2016-05-09 10:29 EDT (History)
0 users

See Also:


Attachments
Example application (3.94 KB, application/x-zip-compressed)
2016-05-09 07:31 EDT, Franz Flintzer CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Franz Flintzer CLA 2016-05-09 07:31:00 EDT
Created attachment 261549 [details]
Example application

When selecting a non-fixed table cell in narrow tables that use a FocusCellManager, scrolling behaviour is triggered even though it is not necessary. 

To reproduce click on any non-fixed column in the attached example.

The issue seems to be caused by the SWTFocusCellManager where scrollCellIntoView(int columnIndex) doesn't check if scrolling is necessary.
Comment 1 Franz Flintzer CLA 2016-05-09 10:29:23 EDT
The focussed cell positioning is also off (same way to reproduce as before). This is caused by Table.showColumn(TableColumn column) at line 1641. 

If the focussed cell sticks out of the visible table area on the right side, the table scrolls so the cell's right border aligns with the displayed area's right border. 

If the cell is wider than the displayed area the left side of the cell is then scrolled out of view.