Bug 299280 - [Viewers] SWT tree flickering with SWTFocusCellManager
Summary: [Viewers] SWT tree flickering with SWTFocusCellManager
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.5.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-11 09:46 EST by niv0 - CLA
Modified: 2019-09-06 16:13 EDT (History)
1 user (show)

See Also:


Attachments
Initial thoughts (1.99 KB, patch)
2010-02-05 05:07 EST, Hitesh CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description niv0 - CLA 2010-01-11 09:46:06 EST
Build Identifier: 

A tree viewer with some columns using the TreeViewerFocusCellManager (extends SWTFocusCellManager) causes tree flickering.

A reason after some debug seems to be "scrollCellIntoView" of class TreeViewerRow. The method scrolls the tree to the left and back again if the focus changed. 
Not sure about a fix, maybe a tree.setRedraw(false)...tree.setRedraw(true) bracket in "scrollCellIntoView".


Reproducible: Always

Steps to Reproduce:
1. Create a view with tree smaller (in width) than the whole tree, that is, not showing all columns and a horizontal scrollbar 
2. In the last column, click between rows
3. Tree flickers
Comment 1 Hitesh CLA 2010-02-05 05:07:38 EST
Created attachment 158287 [details]
Initial thoughts

showItem of Tree method pulls the scroll to the start of item (column 0), the subsequent showColumn sets the scroll back to the desired column. This seems to be the cause of the flicker.

Redraw and the scrolling from the showItem and/or showColumn,both would invalidate entire client area.So toggling redraw seems like a good option. But if the item is visible already then should we skip the method calls.Hmm...

Ideally, showItem method should not change the horizontal scroll position when columns are present and the item is partly visible (one or more columns visible completely). If desired by client the h-scrolling can be achieved by calling showColumn.
Comment 2 Eclipse Webmaster CLA 2019-09-06 16:13:18 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.