Bug 514047 - SWT Table reports wrong header height on GTK3
Summary: SWT Table reports wrong header height on GTK3
Status: CLOSED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.6   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2017-03-22 05:09 EDT by ChristianR CLA
Modified: 2018-08-30 11:52 EDT (History)
2 users (show)

See Also:


Attachments
Small Java code to reproduce problem (1.11 KB, text/x-java)
2017-03-22 05:09 EDT, ChristianR CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description ChristianR CLA 2017-03-22 05:09:39 EDT
Created attachment 267395 [details]
Small Java code to reproduce problem

When using GTK3, SWT tables report a 0 pixel header height if headers are enabled on their first request to calculate its preferred size. In result a table with a single line (+ header) will be displayed so small at its preferred size that the TableItem is almost not seen and cannot be made fully visible using the very small scrollbar.
On GTK2 the table is properly displayed providing room for the header, the table item and about half of a further empty line.

The attached source code reproduces the problem.
Comment 1 Ian Pun CLA 2017-03-22 14:13:10 EDT
Hi Christian,

I wasn't able to reproduce this problem running the latest GTK3 on Fedora 25 vs GTK2 for both X11 and Wayland. Are you running the latest SWT builds?
Comment 2 ChristianR CLA 2017-03-22 14:51:09 EDT
I am using the SWT Libraries that I have taken from my Eclipse RCP Developers Version (4.6.2.)
The files are named:
org.eclipse.swt.3.105.2.v20161122-0616.jar
org.eclipse.swt.gtk.linux.x86_64.3.105.2.v20161122-0613.jar

I am running an xubuntu 16.04.2 LTS but installed also some KDE stuff.
Comment 3 Eric Williams CLA 2018-08-16 14:53:52 EDT
I can't reproduce this issue either. Can you try on GNOME with GTK3.22 and 4.8?
Comment 4 Eric Williams CLA 2018-08-30 11:52:24 EDT
Marking as WORKSFORME, please open if you find otherwise on 4.9M2/GTK3.22.