Bug 567226

Summary: [GTK] ExpandItem not clipped to ExpandBar
Product: [Eclipse Project] Platform Reporter: Ron Anderson <rwa5908>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: major    
Priority: P3 CC: paul-eclipse, sdamrong
Version: 4.17   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
See Also: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/177664
Whiteboard:
Attachments:
Description Flags
Minimal program to expose the issue
none
Image showing incorrect behavior
none
Image showing correct behavior none

Description Ron Anderson CLA 2020-09-21 17:12:44 EDT
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.
Comment 1 Ron Anderson CLA 2020-09-21 17:23:09 EDT
Created attachment 284215 [details]
Image showing incorrect behavior
Comment 2 Ron Anderson CLA 2020-09-21 17:23:37 EDT
Created attachment 284216 [details]
Image showing correct behavior
Comment 3 Soraphol (Paul) Damrongpiriyapong CLA 2021-03-11 12:54:03 EST
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.
Comment 4 Eclipse Genie CLA 2021-03-12 11:31:42 EST
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/177664