sconsult / croppic

croppic
914 stars 228 forks source link

Zoom Controls Not Working When Image Smaller Than Window #205

Closed jasoncross closed 8 years ago

jasoncross commented 8 years ago

We have a Croppic container that is 330x330px.

When an image is uploaded to Croppic that is smaller, the zoom controls aren't working to zoom the image in to fill the screen.

croppic-smallerimg

Beyond that, I'm surprised it's even allowing an image smaller than the window as my understanding is that it scaled to fill by default.

jasoncross commented 8 years ago

Ok, I have this somewhat figured out. I was using the fix from issue #6. This resulted in no longer zooming to fit. Removing this makes it now zoom in when too small.