Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 355051 - Selection in long lists failed under Linux
Summary: Selection in long lists failed under Linux
Status: CLOSED WONTFIX
Alias: None
Product: Jubula
Classification: Technology
Component: RC (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: Indigo SR2   Edit
Assignee: Project Inbox CLA
QA Contact: Oliver Goetz CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-18 06:28 EDT by Ann Hannemann CLA
Modified: 2011-10-19 05:07 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ann Hannemann CLA 2011-08-18 06:28:25 EDT
In our nightly test an error occurs when selecting elements at the end of a long list. Our list has 200 elements and the test should select 7 of them. The final element to be selected is the 200th. Under Windows the test runs without any problems; under Linux the test always selects the 199th element instead of the 200th element. It would seem that the calculation of the element size is faulty under Linux, resulting in the selection of the completely wrong entry after a certain point.
Comment 1 Alexandra Schladebeck CLA 2011-10-19 05:07:24 EDT
This appears to be a problem in GTK. We tested this on a smaller list where the entries had a height of 25 pixels (measured with "KRuler"). Calling List.getItemHeight() for the list returned 23. This means that the calculation gets progressively worse the longer the list is. At some point, depending on the list size and the height of the items, the wrong item is selected at some point. 

This could be reproduced with:
    * SWT 3.5.0.v3550b
    * GTK 2.12.1-5 

But not with:
    * SWT 3.5.0.v3550b
    * GTK 2.4.13-22 

This would appear to suggest that it's a problem with specific GTK version(s).