Skip to content

Fix issues with retina screenshots

What does this MR do and why?

Fix issues with retina screenshots

In rich text editor, when pasting a retina screenshot, it showed full sized screenshot, instead of half the size. This was due to multiple issues:

  • Buffer was undefined on some devices, and
  • width and height were cached in the wrapper. This is now fixed. The bug was introduced in !160357 (merged).

Changelog: fixed

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
image.png image.png
Image is displayed 2x the actual retina size Image is displayed in its retina dimensions (50% smaller)

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Edited by Himanshu Kapoor

Merge request reports

Loading