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

Bug 478442

Summary: [GTK3] ImageHyperLink is rendered incorrectly
Product: [Eclipse Project] Platform Reporter: Alexander Burdukov <aburdukov>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: akurtakov, ericwill
Version: 4.5Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Incorrect Rendering Screenshot
none
Code snippet to reproduce the issue none

Description Alexander Burdukov CLA 2015-09-25 14:12:22 EDT
Created attachment 256851 [details]
Incorrect Rendering Screenshot

ImageHyperLink is drawn incorrectly (partly outside of parent composite) on GTK3 if orientation is set to "right-to-left" (see attached screenshot).

GTK2 and "left-to-right" orientation of GTK3 are not affected by this problem, only "right-to-left" orientation on GTK3 is affected.

To reproduce use attached code snippet.

Reproduced on Eclipse 4.5 and 4.5.1 RC3 with GTK 3.10.8 (Ubuntu 14.04.2 LTS) and GTK 3.14.14 (Ubuntu 15.04).
Comment 1 Alexander Burdukov CLA 2015-09-25 14:13:05 EDT
Created attachment 256852 [details]
Code snippet to reproduce the issue
Comment 2 Alexander Kurtakov CLA 2016-04-15 14:31:54 EDT
Reproduced on Fedora 24/Gtk 3.20.
Comment 3 Eric Williams CLA 2016-04-21 14:47:38 EDT
I can reproduce on SWT master with GTK3.20.

Interestingly enough if you remove the sc.setMinSize() call in the snippet the issue fixes itself. It seems like the text is being pushed too far to the right, and the left side of screen is blocking the text somehow.
Comment 4 Eric Williams CLA 2018-03-20 11:54:30 EDT
Ping, is this still reproducible? I can't reproduce the original issue any longer.
Comment 5 Eric Williams CLA 2018-04-09 16:45:00 EDT
Closing as per comment 4. Please re-open this ticket if you continue to experience the issue.