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

Bug 353905

Summary: Scrollable.getClientArea() behavior differs greatly on Mac OS X
Product: [Eclipse Project] Platform Reporter: Markus Tiede <markus.tiede>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: eclipse.felipe, Silenio_Quarti
Version: 3.7   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:
Attachments:
Description Flags
Fedora 8 GTK 32bit behavior
none
Windows 2008 32bit behavior
none
Mac OS X 10.6.8 64bit Cocoa behavior none

Description Markus Tiede CLA 2011-08-04 11:18:21 EDT
Created attachment 200923 [details]
Fedora 8 GTK 32bit behavior

The SWT API behavior differs greatly when running on Mac OS X:

Calling getClientArea() on a Scrollable, e.g. a List, returns different y-Coordinates for the rectangle representing the client area, as soon as the Scrollable is scrolled to display a list item.

See the attached screenshots for further information: I used Fedora 8 GTK 32bit and Windows 2008 32bit as reference platforms to show the "normal" behavior. In addition to that I started the same application on Mac OS X 10.6 Cocoa.

I "produced" the output as follows:
 - launch the snippet application, re-size it to show only e.g. 4 items, place it to the top (to avoid too big screen coordinates - easier to read and understand ;) )
 - select the first item 0 and successively select item n + 1 and so on
 - as soon as the scrolling starts (In my case item 3) the behavior differs on Mac OS X
Comment 1 Markus Tiede CLA 2011-08-04 11:18:54 EDT
Created attachment 200925 [details]
Windows 2008 32bit behavior
Comment 2 Markus Tiede CLA 2011-08-04 11:19:33 EDT
Created attachment 200926 [details]
Mac OS X 10.6.8 64bit Cocoa behavior
Comment 3 Felipe Heidrich CLA 2011-08-04 11:48:47 EDT
it is possible this is the correct behaviour on the mac, silenio ?
Comment 4 Felipe Heidrich CLA 2011-08-04 11:54:44 EDT
See Bug 353907 also
Comment 5 Felipe Heidrich CLA 2011-08-05 13:50:38 EDT
that is indeed the correct bevhaior on the mac, see bug 333375 for a more complete discussion on this problem.

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