| Summary: | [GTK] getItemHeight method of org.eclipse.swt.widgets.List returns a wrong Item height | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Michael Seele <mseele> | ||||||
| Component: | SWT | Assignee: | Xi Yan <xixiyan> | ||||||
| Status: | VERIFIED FIXED | QA Contact: | Eric Williams <ericwill> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | ericwill, lufimtse, peter, xixiyan | ||||||
| Version: | 3.5.2 | Keywords: | triaged | ||||||
| Target Milestone: | 4.9 M2 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Linux | ||||||||
| See Also: |
https://bugs.eclipse.org/bugs/show_bug.cgi?id=531884 https://git.eclipse.org/r/124422 https://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=394f4e7e26c263b24531e4e9007b110e0f35929d |
||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
Created attachment 162052 [details]
snippet
Tested under CentOS (gtk 2.10.0) and Ubuntu (gtk 2.18.3)
This is still reproducible on GTK3.22, 4.8 M7, and Fedora 28. New Gerrit change created: https://git.eclipse.org/r/124422 Gerrit change https://git.eclipse.org/r/124422 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=394f4e7e26c263b24531e4e9007b110e0f35929d (In reply to Eclipse Genie from comment #4) > Gerrit change https://git.eclipse.org/r/124422 was merged to [master]. > Commit: > http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/ > ?id=394f4e7e26c263b24531e4e9007b110e0f35929d In master now, thanks for the patch Xi. *** Bug 531884 has been marked as a duplicate of this bug. *** |
Created attachment 162051 [details] screenshot org.eclipse.swt.widgets.List.getItemHeight() returns a "wrong" item height. The height is smaller than the normal height. Please see the attached screenshot & snippet. On the screenshot i overlay the snippet with the results of ListItemSnippet.getBounds & ListItemSnippet.getRealBounds. getBounds uses getItemHeight to calculate the bounds and getRealBounds uses native methods.