Bug 227445 - Scrollbar cheese in tree when layout occurs during scrolling
Summary: Scrollbar cheese in tree when layout occurs during scrolling
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.3.1   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Kevin Barnes CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2008-04-16 18:22 EDT by Evan Hourigan CLA
Modified: 2008-05-07 13:58 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Evan Hourigan CLA 2008-04-16 18:22:30 EDT
Build ID: M20071023-1652 but using SWT 3.4M5

Steps To Reproduce:
1.  Place a canvas as a primary control in a composite (use grid layout and have it fill vertical), then place a tree as a secondary control in a composite (use gridlayout and make it fill both).
2.  In reaction to either vertical scrollbar events on the tree's vertical scrollbar, or paint events in the tree, use some random means of determining that the canvas needs to become more or less wide than it was previously, and do this, then call layout on the containing composite.  
3.  Make the tree scroll by holding the mouse down on one of the vertical scrolling arrows.  As the code that determines that the canvas needs to become more or less wide while the mouse is being held on the down arrow, the composite will re-lay itself out.  This causes a number of troublesome symptoms:
 a. Scrollbar artifacts/cheese remain painted on the tree's client area.
 b. The scrolling stops since during layout, the arrow's bounds became temporarily not-under the mouse down location (which is what I think is the root of the bug).


More information:
We are using SWT 3.4M5, so the bug definitely exists in that SWT version.
Comment 1 Kevin Barnes CLA 2008-04-30 10:55:53 EDT
Please attach a simple test case. I'm not seeing the cheese.
Comment 2 Kevin Barnes CLA 2008-05-07 13:58:35 EDT
I'm not able to reproduce this on 3.4. Please reopen with a test case if you can.