Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm having some trouble reusing the umbImageCrop directive (umb-image-crop) in a responsive manner. I'm wondering if anyone has used this in something they've done and could point me to what I'm doing wrong to ensure the resulting viewport maintains the aspect ratio of the crop.
(Please someone from HQ update this text editor so we can paste screenshots from our clipboard. Happy to contribute to that endeavor I've had to write the code multiple times.)
Here the values end up being something like:
When the image width above is larger than the dialog width...
What does the max-size attribute do anyways?
Well, if we use the max-size attribute it constrains both the width and height value. The problem is there's no way to simply say "the max size should be dependent on the available width". I can't say "100%" here. I have to give it a specific number.
Temporary fix - I'll use the max-size attribute...
For now I'll use the max-size attribute... But there must be something I've missed? If there is indeed no way to force responsiveness, would HQ mind if I updated this directive to include an optional parameter to allow true responsiveness?
Some of the files I've been referencing:
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted