Bug 567226 - [GTK] ExpandItem not clipped to ExpandBar
Summary: [GTK] ExpandItem not clipped to ExpandBar
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.17   Edit
Hardware: PC Linux
: P3 major with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-21 17:12 EDT by Ron Anderson CLA
Modified: 2021-03-12 11:31 EST (History)
2 users (show)

See Also:


Attachments
Minimal program to expose the issue (2.15 KB, text/x-java)
2020-09-21 17:12 EDT, Ron Anderson CLA
no flags Details
Image showing incorrect behavior (6.34 KB, image/png)
2020-09-21 17:23 EDT, Ron Anderson CLA
no flags Details
Image showing correct behavior (5.95 KB, image/png)
2020-09-21 17:23 EDT, Ron Anderson CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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