matheusdavidson / angular-cropperjs

CropperJS integration for Angular +6
MIT License
109 stars 69 forks source link

Cropper in an overlay doesn't work #51

Open Neewd opened 4 years ago

Neewd commented 4 years ago

Hey,

I am quite sure this is an easy one but I am struggling for days with this issue and I'd really appreciate some help in here.

I am trying to open the cropper in a overlay (Angular Cdk Overlay component) in order to see a bigger representation of my image to crop. But when I initialize the cropper, my image is going in full size and the cropper overflow my screen.

Capture d’écran 2019-12-05 à 09 13 21

If I put an overflow : auto on my angular-cropper element, I'll miss a part of my image.

I would like to tell the cropper that my max-height is 95vh and thus adapt to it directly. Is that possible ?