Bug 571394 - Text.setBackgroundImage() with MacOS Big Sur is not painting correctly
Summary: Text.setBackgroundImage() with MacOS Big Sur is not painting correctly
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.19   Edit
Hardware: Macintosh Mac OS X
: P3 major with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-21 16:00 EST by andreas CLA
Modified: 2021-02-21 16:00 EST (History)
0 users

See Also:


Attachments
Example with displaced backgroundImage (5.39 KB, application/octet-stream)
2021-02-21 16:00 EST, andreas CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description andreas CLA 2021-02-21 16:00:33 EST
Created attachment 285623 [details]
Example with displaced backgroundImage

With MacOSX Big Sur, background images set with Text.setBackgroundImage() are not painted correctly. The x,y origin of the image is moving, depending on the layout of the Text widget. 
  
It is very strange, because it seems to depend on the layoutData.

I have seen the effect with Composite and with Text widgets with style SWT.MULTI.

In my attached example, I use three Text widgets. If the last one (TextWidget3) has SWT.SINGLE, then the position of the background image of TextWidget2 is correct. 

Also if the numerator of all FormAttachments of the widgets are 0 or 100 (composite2 and textWidget1), than the painting of the background of these widgets are correct.

During resizing the shell, the position of the background image in the widgets are moving.