Closed andykisaragi closed 7 years ago
hmm actually uploading those images has made me realise that they are both similarly off-centre, it's possible some of my own CSS is interfering here...
found it - my cropit is nested inside an element with text-align: center
, which when combined with the various transforms, wound up with that weird offset. fixed it by putting text-align: left
on the image preview container :)
Hi,
I'm having trouble with small images not filling the container.
My settings are:
$('.cropit-container').cropit({ imageBackground: true, imageBackgroundBorderWidth: 30, smallImage: 'stretch', minZoom: 'fill', maxZoom: 2, });
I want the image to stretch larger than it's original size to completely fill the container, but I get this:
with minZoom set to 'fit' I get this, which is what I'd expect with that setting:
Any ideas?
Thanks! x