Focal Point Preview Modal Position Issue on Initial Load

Created on 20 August 2024, 4 months ago
Updated 21 August 2024, 4 months ago

Problem/Motivation

When a user clicks on a preview link for the first time, the Focal Point Preview modal is opened and there is a short delay until the original image is loaded inside the modal. Due to this delay, the positioning of the modal is affected and the bottom part of the modal gets cut off. This results in a less than optimal user experience.

Steps to reproduce

  1. Navigate to the media image editing page that has a focal point image field and the preview link setting is enabled in the widget configurations.
  2. Click on the 'Preview' link to open the Focal Point modal.
  3. In the modal, click on the 'Preview' link to open the Focal Point Preview modal.
  4. When the modal opens up, observe that there is a short delay until the original image is loaded.
  5. Notice that due to this delay, the positioning of the modal is affected and the bottom part of the modal gets cut off.

Proposed resolution

To rectify this issue, we propose triggering a window resize event once the original image has been loaded.

🐛 Bug report
Status

RTBC

Version

2.0

Component

Miscellaneous

Created by

🇧🇪Belgium bernardopaulino Brussels

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024