Skip to content

Fix: workaround for crop preview images are too wide to be displayed. - #28

Open
frischnetz wants to merge 1 commit into
Sterc:developmentfrom
frischnetz:fix-crop-preview
Open

frischnetz wants to merge 1 commit into
Sterc:developmentfrom
frischnetz:fix-crop-preview

Conversation

@frischnetz

Copy link
Copy Markdown

In recent MODX versions the crop previews in the cropper window are empty for large images.

In the HTML the width of the preview areas are set to the width of the original image, not to the width of the crop-preview-area. This leads to images being outside the crop preview and thus an empty field with only checkerboard patterns.

(The best fix would be to prevent the width from being written into a style tag in the html. This is just a small workaround to get the images displayed again.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant