andrefarzat / ng-jcrop

Angular directive to jCrop jQuery plugin
GNU General Public License v2.0
101 stars 39 forks source link

fix #36 BUG #50

Closed luoch closed 8 years ago

luoch commented 8 years ago

When the image file size is square and larger than maxWidth or maxHeight, the thumbnail preview will get wrong position. Add the square image judgment will fix this bug. Refer to BUG #36 and fix it.

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-1.4%) to 97.857% when pulling c05da3da048c01cdb78c0b23dbf1387532f51b42 on luoch:master into f01d1c2071df3f725ff448d0d48761e0410b7476 on andrefarzat:master.

andrefarzat commented 8 years ago

All tests passed, just the coverage dropped a bit, but I will write a test to return as it was.

Thanks a lot :smile: