Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 533131

Summary: [GTK3] Diagrams draw outside their area
Product: [Eclipse Project] Platform Reporter: Ansgar Radermacher <ansgar.radermacher>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: loskutov, simeon.danailov.andreev
Version: 4.8   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=533130
https://bugs.eclipse.org/bugs/show_bug.cgi?id=492371
Whiteboard:
Attachments:
Description Flags
Screenshot of composite structure diagram
none
Editor draws outside area none

Description Ansgar Radermacher CLA 2018-04-01 09:27:56 EDT
Some diagrams draw outside their area, in particular the Papyrus composite structure diagram, as shown in a screenshot that I will add. The issue seems to be related to clipping/viewports. This behavior started recently after an upgrade of Eclipse photon (I have the photon/staging update site in my installation), but I can't exclude that host OS has done some updates at the same time. The latter is a Kubuntu 16.04 with gtk version i3.18.9. The problem vanishes, if Eclipse is started after "export SWT_GTK3=0"
Comment 1 Ansgar Radermacher CLA 2018-04-01 09:32:50 EDT
Created attachment 273394 [details]
Screenshot of composite structure diagram

Screenshot of composite structure diagram, the diagram is normally aligned with the gradient background, but is now deplaced towards the top/left corner and particular not within the normal drawing area.
Comment 2 Andrey Loskutov CLA 2018-04-01 11:30:50 EDT
Ansgar, please check if the patch https://git.eclipse.org/r/119832 for bug 531667 fixes this issue.

*** This bug has been marked as a duplicate of bug 531667 ***
Comment 3 Ansgar Radermacher CLA 2018-04-02 06:41:02 EDT
Yes, it fixes the issue. Thanks.
Comment 4 Ansgar Radermacher CLA 2018-04-03 01:23:43 EDT
Created attachment 273400 [details]
Editor draws outside area

While the patch for bug 531667 (https://git.eclipse.org/r/#/c/119832/) greatly reduces the problem, it is still possible that the graphical editor draws outside the normal area, as shown in this new screenshot.
Comment 5 Andrey Loskutov CLA 2018-04-03 01:44:42 EDT
(In reply to Ansgar Radermacher from comment #4)
> Created attachment 273400 [details]
> Editor draws outside area
> 
> While the patch for bug 531667 (https://git.eclipse.org/r/#/c/119832/)
> greatly reduces the problem, it is still possible that the graphical editor
> draws outside the normal area, as shown in this new screenshot.

Please comment on the main bug 531667 and please provide steps to reproduce. Also please specify your GTK version.
Comment 6 Simeon Andreev CLA 2018-04-03 04:14:14 EDT
Looks very much like https://bugs.eclipse.org/bugs/show_bug.cgi?id=531667#c46 ?

Some steps to reproduce would be great, if we determine its the same issue we'll need some sort of fix for it I guess.