kennygit / jcrop

Automatically exported from code.google.com/p/jcrop
0 stars 0 forks source link

minSize + aspectRatio bug #68

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
I am trying to use Jcrop for my application, though I have run into a bug with 
it. I went to the demo page, and the bug exists there too. Here is how to 
create it.

Go to this demo page 
http://deepliquid.com/projects/Jcrop/demos.php?demo=advanced

Make sure the following options are checked "Selection can be moved"
 "Resizable selection" "Aspect ratio" "minSize/maxSize setting"

Create a selected area, drag it to the upper left corner, grab the lower right 
corner of the selection(as if you were going to resize it) and drag it to the 
upper left corner of the image.

Once you pass the upper left corner of the image the select area collapses down 
to a 0x0 pixel selection.

This bug only happens when an aspect ratio is set. Otherwise it works fine.

I'm wondering if anyone has any experience hacking around with this plugin to 
where they might be able to fix this bug. I've been going through it all day 
and haven't been able to figure it out yet.

Please provide any additional information below.
Look at 
http://stackoverflow.com/questions/6514413/a-bug-in-jcrop-minsize-aspectratio

Original issue reported on code.google.com by dona...@gmail.com on 8 Jan 2012 at 3:18

GoogleCodeExporter commented 8 years ago
I would suggest my patch from http://stackoverflow.com/a/22205969/69173 .

Original comment by bluej...@gmail.com on 5 Mar 2014 at 6:20