Community
Participate
Working Groups
Created attachment 284214 [details] Minimal program to expose the issue When an ExpandItem is expanded such that some portion of the ExpandItem's control extends below the bounds of the ExpandBar it is normally clipped to the area of the ExpandBar. However if the ExpandBar is resized horizontally the area below the ExpandBar equivalent to the extent of the ExpandItem is overwritten. This does not happen when the ExpandBar is resized vertically or if the ExpandItem is not expanded. This appears to be a GTK3 issue. When we run using 4.6 with SWT_GTK3=0 this does not happen. Running with SWT_GTK3=1 or running on 4.16 this behavior is present. I have attached a small program which displays the issue. When you run the program, expand Expand Item 1 then resize the dialog horizontally the label below the ExpandBar is overwritten.
Created attachment 284215 [details] Image showing incorrect behavior
Created attachment 284216 [details] Image showing correct behavior
Hello, I am currently investigating this issue. At the moment, it seems that the way we are enforcing the height of the Control widget inside of the GtkExpander is causing the graphical overflow bug. It seems that the GtkExpander does not hold well with SWTFixed and gtk_widget_set_size_request.
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/177664