Community
Participate
Working Groups
Build Identifier: M20100909-0800 The TableItem.getBounds method is returning overlapping regions for the items in a table. The attached sample code generates output like the following: BOUNDS: Rectangle {3, 0, 38, 24} BOUNDS: Rectangle {3, 23, 38, 24} BOUNDS: Rectangle {3, 46, 38, 24} BOUNDS: Rectangle {3, 69, 38, 24} The first item in the table starts at a vertical position of 0 and has a height of 24. The second item in the table starts at a vertical position of 23 and has a height of 24. This starting position for the second item overlaps with the region returned for the first item. Likewise for the other items in the table. Reproducible: Always Steps to Reproduce: 1. run the attached sample code
Created attachment 187347 [details] sample code fragment demonstrating the issue
I should add that this behavior is different on linux vs. Windows. On Windows the regions are non-overlapping whereas on linux the regions do overlap.
No SWT snippet provided, and based on bug 512984, everything is working correctly.