Community
Participate
Working Groups
Created attachment 269895 [details] Row problem - only GTK-3
Created attachment 269896 [details] Row problem
We are using TableViewer jFace component in our Eclipse RCP application. Since migrating to RHEL7 and Gnome-3 we are experiencing strange behaviour of row height in some cases. Row height is not calculated properly so not all row contents is displayed correctly (see attachments). This doesn't occur always but in may times this is the case. Sometimes it depends on the number of rows in table, but it is not the rule of thumb. Refreshing the table sometimes creates correct display, but not always. But, If we use gnome-tweak-tool to change for ex. the scaling factor or the gnome theme, the problem disappears, until it occurs again. Then the same thing helps. The problem in "Row problem" attachment also occurs if we force the app. to use GTK-2. (export SWT_GTK3=0) Looks like SWT-GTK problem.
Hello, do you have a snippet to reproduce this issue?
Isolated snippet is hard create as code is has many dependencies. I will try to create a single straightforward code. This is somehow connected with the layout. We managed to find workaround for row problem with changing the layout of the component. We changed the Grid data layout form GridData gd = new GridData(SWT.FILL, SWT.FILL, true, true); to GridData gd = new GridData(SWT.FILL, SWT.FILL, true, false); gd.heightHint = heightHint. So setting grabExcessVerticalSpace to false fixed the issue.
Probably not a bug in SWT, I'll resolve this ticket for now.