Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 355290

Summary: [10.7][lion]Thumb/Scroller not recalculated properly when content of a windows (project explorer or tree viewer) extends
Product: [Eclipse Project] Platform Reporter: thierry <ts>
Component: SWTAssignee: Silenio Quarti <Silenio_Quarti>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: eclipse.felipe, remy.suen, Silenio_Quarti
Version: 3.7   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:
Attachments:
Description Flags
project explorer before expanding
none
After expanding a node
none
After resizing the workbench window
none
After expanding a node (Correct attachment format) none

Description thierry CLA 2011-08-20 03:58:32 EDT
Build Identifier: I20110613-1736

When using the standard project explorer, I noticed that the increase of content size when expanding a node is not taken properly into account unless the increase is big enough.
Two screen shots showing before and after are attached.
There are multiple other cases where the scroll bars do not think to work properly with tree viewers. 
As an extra precision, this happens only on os x lion and seems linked to the weird new lion scrollbars.

Reproducible: Always

Steps to Reproduce:
1. Display a project explorer with its content almost full
2. Expand a node which does have a small set of nodes
Comment 1 thierry CLA 2011-08-20 04:01:04 EDT
Created attachment 201846 [details]
project explorer before expanding
Comment 2 thierry CLA 2011-08-20 04:06:23 EDT
Created attachment 201847 [details]
After expanding a node

After the node MIBs_45 is expanded, the view port and the scrolling are wrong. It is not possible to see
more than the first child node. Not even the next sibling of MIBs_45 as shown in the 'Before expanding' attachment is accessible.
Comment 3 thierry CLA 2011-08-20 04:09:33 EDT
Created attachment 201848 [details]
After resizing the workbench window

After resizing the workbench window, the proper sizes of scroller and view port are finally reset properly.
Comment 4 thierry CLA 2011-08-20 04:14:12 EDT
Created attachment 201849 [details]
After expanding a node (Correct attachment format)
Comment 5 Silenio Quarti CLA 2011-08-23 11:33:40 EDT
I believe this is related to 

https://bugs.eclipse.org/bugs/show_bug.cgi?id=348309#c6

I have not been able to reproduce with the latest 3.8 and 3.7.1 integration builds. Please give those a try and reopen if you still see the problem.

*** This bug has been marked as a duplicate of bug 348309 ***